Skip to content

Commit f916b23

Browse files
committed
remove unused variable
1 parent 73654c9 commit f916b23

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

VL53L0X.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ uint32_t VL53L0X::readReg32Bit(uint8_t reg)
358358
return value;
359359
}
360360

361-
// Write an arbitrary number of bytes from the given array starting at the
362-
// given register
361+
// Write an arbitrary number of bytes from the given array to the sensor,
362+
// starting at the given register
363363
void VL53L0X::writeMulti(uint8_t reg, uint8_t const * src, uint8_t count)
364364
{
365365
Wire.beginTransmission(address);
@@ -373,8 +373,8 @@ void VL53L0X::writeMulti(uint8_t reg, uint8_t const * src, uint8_t count)
373373
last_status = Wire.endTransmission();
374374
}
375375

376-
// Read an arbitrary number of bytes from the given register into the given
377-
// array
376+
// Read an arbitrary number of bytes from the sensor, starting at the given
377+
// register, into the given array
378378
void VL53L0X::readMulti(uint8_t reg, uint8_t * dst, uint8_t count)
379379
{
380380
Wire.beginTransmission(address);
@@ -436,7 +436,6 @@ bool VL53L0X::setMeasurementTimingBudget(uint32_t budget_us)
436436

437437
if (budget_us < MinTimingBudget) { return false; }
438438

439-
uint32_t final_range_budget_us = budget_us;
440439
uint32_t used_budget_us = StartOverhead + EndOverhead;
441440

442441
getSequenceStepEnables(&enables);
@@ -556,9 +555,9 @@ uint32_t VL53L0X::getMeasurementTimingBudget(void)
556555
return budget_us;
557556
}
558557

559-
// Set the VCSEL (vertical cavity surface emitting laser) pulse period in PCLKs
560-
// for the given period type (pre-range or final range). Longer pulse periods
561-
// seem to increase the potential range of the sensor.
558+
// Set the VCSEL (vertical cavity surface emitting laser) pulse period for the
559+
// given period type (pre-range or final range) to the given value in PCLKs.
560+
// Longer periods seem to increase the potential range of the sensor.
562561
// Valid values are (even numbers only):
563562
// pre: 12 to 18 (initialized default: 14)
564563
// final: 8 to 14 (initialized default: 10)

0 commit comments

Comments
 (0)