Skip to content

Commit 71314d1

Browse files
committed
Fixes bitwise OR to logical OR operator in sensorID check
* rolls version
1 parent 2ae2e9d commit 71314d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun VL53L1X 4m Laser Distance Sensor
2-
version=1.2.10
2+
version=1.2.11
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Library for the SparkFun Qwiic 4m Distance Sensor - VL53L1X

Diff for: src/SparkFun_VL53L1X.cpp

+1-1
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 | sensorId == 0xEBAA)
57+
if ( (sensorId == 0xEACC) || (sensorId == 0xEBAA) )
5858
return true;
5959
return false;
6060
}

0 commit comments

Comments
 (0)