Skip to content

Commit

Permalink
Merge pull request #11 from sebromero/main
Browse files Browse the repository at this point in the history
Fix broken check for sensor ID
  • Loading branch information
cparata authored Aug 28, 2024
2 parents 066664f + d2c29d5 commit 6b1f382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vl53l4cd_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class VL53L4CD {

status = VL53L4CD_GetSensorId(&sensor_id);

if (status != VL53L4CD_ERROR_NONE && (sensor_id != 0xebaa)) {
if (status != VL53L4CD_ERROR_NONE || (sensor_id != 0xebaa)) {
return VL53L4CD_ERROR_TIMEOUT;
}

Expand Down

0 comments on commit 6b1f382

Please sign in to comment.