No range status update (error 255)

Dependencies:   mbed

Fork of VL53L1X by Jesus Fausto

Revision:
1:0d762892f7af
Parent:
0:03b7e8deb3ee
Child:
4:a9362bc0597a
--- a/VL53L1X.h	Wed Jul 18 16:47:45 2018 +0000
+++ b/VL53L1X.h	Thu Jul 19 21:58:59 2018 +0000
@@ -12,6 +12,7 @@
 class VL53L1X {
   public:
     VL53L1X(PinName SDA, PinName SCL);
+    bool begin();
     void softReset(); //Reset the sensor via software
     void startMeasurement(uint8_t offset = 0); //Write a block of bytes to the sensor to configure it to take a measurement
     bool newDataReady(); //Polls the measurement completion bit