Question
VL53L1 2.0 Library
Unused code detected:
VL53L1_Error VL53L1::VL53L1_RdByte(VL53L1_DEV Dev, uint16_t index, uint8_t *data)
{
int status;
status = VL53L1_I2CRead(Dev->I2cDevAddr, index, data, 1);
//FR bug :: I2CRead exits always with 0! why the following check? Unused.
if (status) {
return -1;
}
return 0;
}
