Skip to content

Commit c99f8c2

Browse files
Merge pull request #19 from rain-er/patch-1
Update SparkFun_VL53L1X.cpp
2 parents 1773c55 + 4a24022 commit c99f8c2

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)