adafruit / Adafruit_VL53L0X

Arduino library for Adafruit VL53L0X
149 stars 118 forks source link

Sensor status is now correctly updated when setting new address #2

Closed ServerTech closed 6 years ago

ServerTech commented 6 years ago

Sensor status (VL53L0X_Error) was not being updating while updating I2C address, and so errors are never caught, with the I2C bus or otherwise. This may cause the sensor to stop functioning (even when the user fixes any hardware/connection issues with I2C) because the VL53L0X_Dev_t structure was updated with the address (which wasn't ever updated).