Skip to content

Commit d2c29d5

Browse files
committed
Fix broken check for sensor ID
1 parent 066664f commit d2c29d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vl53l4cd_class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class VL53L4CD {
130130

131131
status = VL53L4CD_GetSensorId(&sensor_id);
132132

133-
if (status != VL53L4CD_ERROR_NONE && (sensor_id != 0xebaa)) {
133+
if (status != VL53L4CD_ERROR_NONE || (sensor_id != 0xebaa)) {
134134
return VL53L4CD_ERROR_TIMEOUT;
135135
}
136136

0 commit comments

Comments
 (0)