Initial release.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_53L1A1_mbed X_NUCLEO_53L1A1_mbed VL53L1X_Ranging_With_Standalone_Satellite_MbedOS X_NUCLEO_53L1A1
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);
}