Skip to content

Commit bfa4dbc

Browse files
committed
Fix bug in issue #6
1 parent a8ac30a commit bfa4dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_VL53L1X_Arduino_Library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void VL53L1X::startMeasurement(uint8_t offset)
118118
_i2cPort->write(0); //We're only in lower address space. No MSB needed.
119119
_i2cPort->write(address);
120120

121-
for (byte x = 0 ; x < leftToSend ; x++)
121+
for (byte x = 0 ; x < toSend ; x++)
122122
_i2cPort->write(pgm_read_byte_near(configBlock + address + x - 1 - offset));
123123

124124
_i2cPort->endTransmission();

0 commit comments

Comments
 (0)