Skip to content

Commit

Permalink
fixing ROI setting function to not overwrite opticalcenter
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyEngland521 committed Jan 15, 2020
1 parent 9d3e0e4 commit 4f5f83d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SparkFun VL53L1X 4m Laser Distance Sensor
version=1.2.3
version=1.2.4
author=SparkFun Electronics <techsupport@sparkfun.com>
maintainer=SparkFun Electronics <sparkfun.com>
sentence=Library for the SparkFun Qwiic 4m Distance Sensor - VL53L1X
Expand Down
1 change: 0 additions & 1 deletion src/vl53l1x_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,6 @@ VL53L1X_ERROR VL53L1X::VL53L1X_SetROI(uint8_t X, uint8_t Y, uint8_t opticalCente
{
VL53L1X_ERROR status = 0;

status =VL53L1_RdByte(Device, VL53L1_ROI_CONFIG__MODE_ROI_CENTRE_SPAD, &opticalCenter);
if (X > 16)
X = 16;
if (Y > 16)
Expand Down

0 comments on commit 4f5f83d

Please sign in to comment.