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.
1 parent a8ac30a commit bfa4dbcCopy full SHA for bfa4dbc
src/SparkFun_VL53L1X_Arduino_Library.cpp
@@ -118,7 +118,7 @@ void VL53L1X::startMeasurement(uint8_t offset)
118
_i2cPort->write(0); //We're only in lower address space. No MSB needed.
119
_i2cPort->write(address);
120
121
- for (byte x = 0 ; x < leftToSend ; x++)
+ for (byte x = 0 ; x < toSend ; x++)
122
_i2cPort->write(pgm_read_byte_near(configBlock + address + x - 1 - offset));
123
124
_i2cPort->endTransmission();
0 commit comments