Skip to content

Commit 4a24022

Browse files
authored
Update SparkFun_VL53L1X.cpp
I think there is a typo. To set ROI-X and ROI-Y independantly, x any y should be passed to VL53L1X_SetROI()
1 parent 1773c55 commit 4a24022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SparkFun_VL53L1X.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ uint16_t SFEVL53L1X::getDistanceThresholdHigh()
270270

271271
void SFEVL53L1X::setROI(uint16_t x, uint16_t y)
272272
{
273-
_device->VL53L1X_SetROI(x, x);
273+
_device->VL53L1X_SetROI(x, y);
274274
}
275275

276276
uint16_t SFEVL53L1X::getROIX()
@@ -327,4 +327,4 @@ void SFEVL53L1X::calibrateOffset(uint16_t targetDistanceInMm)
327327
void SFEVL53L1X::calibrateXTalk(uint16_t targetDistanceInMm)
328328
{
329329
_device->VL53L1X_CalibrateXtalk(targetDistanceInMm, getXTalk());
330-
};
330+
};

0 commit comments

Comments
 (0)