Skip to content

Commit a445b90

Browse files
committed
VL53L4CD: removed unnecessary define
1 parent f25d8ac commit a445b90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_VL53L4CD.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#include "WipperSnapper_I2C_Driver.h"
1919
#include <vl53l4cd_class.h>
20-
#define VL53L4CD_STATUS_VALID 0 ///< Returned distance is valid
2120

2221
/**************************************************************************/
2322
/*!
@@ -134,7 +133,7 @@ class WipperSnapper_I2C_Driver_VL53L4CD : public WipperSnapper_I2C_Driver {
134133

135134
// Read measured distance. RangeStatus = 0 means valid data
136135
if (_VL53L4CD->VL53L4CD_GetResult(&results) == VL53L4CD_ERROR_NONE) {
137-
if (results.range_status != VL53L4CD_STATUS_VALID) {
136+
if (results.range_status != 0) {
138137
WS_DEBUG_PRINT("VL53L4CD range status: ");
139138
WS_DEBUG_PRINTLN(results.range_status);
140139
return false;

0 commit comments

Comments
 (0)