Skip to content

Commit

Permalink
Update vl53l4ed_class.h
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Parata <[email protected]>
  • Loading branch information
cparata authored Aug 28, 2024
1 parent 4f7fb51 commit 1c00700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vl53l4ed_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class VL53L4ED {

status = VL53L4ED_GetSensorId(&sensor_id);

if (status != VL53L4ED_ERROR_NONE && (sensor_id != 0xecaa)) {
if (status != VL53L4ED_ERROR_NONE || (sensor_id != 0xecaa)) {

return VL53L4ED_ERROR_TIMEOUT;
}
Expand Down

0 comments on commit 1c00700

Please sign in to comment.