commentata la ridefinizione di tipo bool_t in i2c
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
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); }