Skip to content

Commit

Permalink
Add alternative 0xecaa ID
Browse files Browse the repository at this point in the history
Some sensors mounted on Plug And Play kit are reporting 0xecaa as ID (may be a new silicon revision not tracked by the datasheet?)

The issue was not discovered before d2c29d5 got merged, since the check was succeeded in any case.
  • Loading branch information
facchinm committed Sep 2, 2024
1 parent 104cc16 commit 6bc7d25
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) && (sensor_id != 0xecaa))) {
return VL53L4CD_ERROR_TIMEOUT;
}

Expand Down

0 comments on commit 6bc7d25

Please sign in to comment.