Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: HelloWorld_ST_Sensors mbed-os-mqtt-client Multi_VL53L0X DISCO-IOT01_HomeEnv ... more
Fork of VL53L0X by
Diff: VL53L0X.cpp
- Revision:
- 1:834986cdde0a
- Parent:
- 0:a1a69d32f310
- Child:
- 2:d07edeaff6f1
--- a/VL53L0X.cpp	Fri Sep 29 15:38:50 2017 +0000
+++ b/VL53L0X.cpp	Wed Oct 04 13:21:38 2017 +0000
@@ -5236,7 +5236,7 @@
             return status;
         }
 
-        if (new_addr != DEFAULT_DEVICE_ADDRESS) {
+        if (new_addr != VL53L0X_DEFAULT_ADDRESS) {
             status = set_device_address(new_addr);
             if (status) {
                 printf("Failed to change I2C address!\n\r");
@@ -5406,12 +5406,12 @@
 
     if (operating_mode == range_continuous_polling) {
         if (Status == VL53L0X_ERROR_NONE) {
-            printf("Call of VL53L0X_SetDeviceMode\n");
+            //printf("Call of VL53L0X_SetDeviceMode\n");
             Status = VL53L0X_set_device_mode(_device, VL53L0X_DEVICEMODE_CONTINUOUS_RANGING); // Setup in continuous ranging mode
         }
 
         if (Status == VL53L0X_ERROR_NONE) {
-            printf("Call of VL53L0X_StartMeasurement\n");
+            //printf("Call of VL53L0X_StartMeasurement\n");
             Status = VL53L0X_start_measurement(_device);
         }
     }
@@ -5462,12 +5462,12 @@
     if (operating_mode == range_continuous_interrupt || operating_mode == range_continuous_polling) {
         // continuous mode
         if (status == VL53L0X_ERROR_NONE) {
-            printf("Call of VL53L0X_StopMeasurement\n");
+            //printf("Call of VL53L0X_StopMeasurement\n");
             status = VL53L0X_stop_measurement(_device);
         }
 
         if (status == VL53L0X_ERROR_NONE) {
-            printf("Wait Stop to be competed\n");
+            //printf("Wait Stop to be competed\n");
             status = wait_stop_completed(_device);
         }
 
    