We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1773c55 + 4a24022 commit c99f8c2Copy full SHA for c99f8c2
src/SparkFun_VL53L1X.cpp
@@ -270,7 +270,7 @@ uint16_t SFEVL53L1X::getDistanceThresholdHigh()
270
271
void SFEVL53L1X::setROI(uint16_t x, uint16_t y)
272
{
273
- _device->VL53L1X_SetROI(x, x);
+ _device->VL53L1X_SetROI(x, y);
274
}
275
276
uint16_t SFEVL53L1X::getROIX()
@@ -327,4 +327,4 @@ void SFEVL53L1X::calibrateOffset(uint16_t targetDistanceInMm)
327
void SFEVL53L1X::calibrateXTalk(uint16_t targetDistanceInMm)
328
329
_device->VL53L1X_CalibrateXtalk(targetDistanceInMm, getXTalk());
330
-};
+};
0 commit comments