as per name
Dependencies: VL53L1CB
Diff: main.cpp
- Revision:
- 1:9f70f022f5be
- Parent:
- 0:86d5438023b9
- Child:
- 2:c593079fec6a
diff -r 86d5438023b9 -r 9f70f022f5be main.cpp --- a/main.cpp Mon Jun 14 09:36:20 2021 +0000 +++ b/main.cpp Tue Jun 15 07:58:58 2021 +0000 @@ -186,8 +186,10 @@ pMultiRangingData = &MultiRangingData; status = board->sensor_centre->VL53L1CB_WaitMeasurementDataReady(); - status = board->sensor_centre->VL53L1CB_GetMultiRangingData( pMultiRangingData); - print_results( devCentre.i2c_slave_address, pMultiRangingData ); + if ( status == 0) { + status = board->sensor_centre->VL53L1CB_GetMultiRangingData( pMultiRangingData); + print_results( devCentre.i2c_slave_address, pMultiRangingData ); + } status = board->sensor_centre->VL53L1CB_ClearInterrupt(); }