File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
#include " WipperSnapper_I2C_Driver.h"
19
19
#include < vl53l4cd_class.h>
20
- #define VL53L4CD_STATUS_VALID 0 // /< Returned distance is valid
21
20
22
21
/* *************************************************************************/
23
22
/* !
@@ -134,7 +133,7 @@ class WipperSnapper_I2C_Driver_VL53L4CD : public WipperSnapper_I2C_Driver {
134
133
135
134
// Read measured distance. RangeStatus = 0 means valid data
136
135
if (_VL53L4CD->VL53L4CD_GetResult (&results) == VL53L4CD_ERROR_NONE) {
137
- if (results.range_status != VL53L4CD_STATUS_VALID ) {
136
+ if (results.range_status != 0 ) {
138
137
WS_DEBUG_PRINT (" VL53L4CD range status: " );
139
138
WS_DEBUG_PRINTLN (results.range_status );
140
139
return false ;
You can’t perform that action at this time.
0 commit comments