Skip to content

Commit 4f5f83d

Browse files
fixing ROI setting function to not overwrite opticalcenter
1 parent 9d3e0e4 commit 4f5f83d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-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.3
2+
version=1.2.4
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/vl53l1x_class.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ VL53L1X_ERROR VL53L1X::VL53L1X_SetROI(uint8_t X, uint8_t Y, uint8_t opticalCente
748748
{
749749
VL53L1X_ERROR status = 0;
750750

751-
status =VL53L1_RdByte(Device, VL53L1_ROI_CONFIG__MODE_ROI_CENTRE_SPAD, &opticalCenter);
752751
if (X > 16)
753752
X = 16;
754753
if (Y > 16)

0 commit comments

Comments
 (0)