Skip to content

Commit 75eaa00

Browse files
committed
Fix timing budget VL53L4CX
1 parent 9be1e4f commit 75eaa00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_VL53L4CX.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class WipperSnapper_I2C_Driver_VL53L4CX : public WipperSnapper_I2C_Driver {
7474
return false;
7575
}
7676

77-
// Set 1 second measurement time, the highest possible TimingBudget is 10s
78-
if (_VL53L4CX->VL53L4CX_SetMeasurementTimingBudgetMicroSeconds(1000000) !=
77+
// Set 200ms measurement time, the possible TimingBudget is 8-200ms
78+
if (_VL53L4CX->VL53L4CX_SetMeasurementTimingBudgetMicroSeconds(200000) !=
7979
VL53L4CX_ERROR_NONE) {
8080
WS_DEBUG_PRINTLN("Failed to set VL53L4CX timing budget!");
8181
return false;

0 commit comments

Comments
 (0)