Skip to content

Commit 159c19e

Browse files
committed
Adds sensorID for an alternate part.
1 parent 065e292 commit 159c19e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/SparkFun_VL53L1X.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool SFEVL53L1X::checkID()
5454
{
5555
uint16_t sensorId;
5656
_device->VL53L1X_GetSensorId(&sensorId);
57-
if (sensorId == 0xEACC)
57+
if (sensorId == 0xEACC | sensorId == 0xEBAA)
5858
return true;
5959
return false;
6060
}
@@ -359,4 +359,4 @@ void SFEVL53L1X::calibrateXTalk(uint16_t targetDistanceInMm)
359359
{
360360
uint16_t xTalk = getXTalk();
361361
_device->VL53L1X_CalibrateXtalk(targetDistanceInMm, &xTalk);
362-
};
362+
};

0 commit comments

Comments
 (0)