No range status update (error 255)

Dependencies:   mbed

Fork of VL53L1X by Jesus Fausto

Revision:
4:a9362bc0597a
Parent:
1:0d762892f7af
--- a/VL53L1X.h	Fri Jul 20 16:39:22 2018 +0000
+++ b/VL53L1X.h	Tue Jul 24 17:41:28 2018 +0000
@@ -22,10 +22,10 @@
     uint8_t getDistanceMode();
     uint8_t getRangeStatus(); //Returns the results from the last measurement, 0 = valid
 
-    uint8_t readRegister(uint16_t addr); //Read a byte from a 16-bit address
-    uint16_t readRegister16(uint16_t addr); //Read two bytes from a 16-bit address
-    void writeRegister(uint16_t addr, uint8_t val); //Write a byte to a spot
-    void writeRegister16(uint16_t addr, uint16_t val); //Write two bytes to a spot
+    uint8_t readRegister(uint16_t registerAddr); //Read a byte from a 16-bit address
+    uint16_t readRegister16(uint16_t registerAddr); //Read two bytes from a 16-bit address
+    void writeRegister(uint16_t registerAddr, uint8_t data); //Write a byte to a spot
+    void writeRegister16(uint16_t registerAddr, uint16_t data); //Write two bytes to a spot
     
   private:
   I2C _i2c;