Fix VL53L1X compilation

This commit is contained in:
Theo Arends 2022-11-08 18:08:45 +01:00
parent 381bfbf5bd
commit 67c4b1be1f

View File

@ -132,7 +132,7 @@ void Vl53l1Show(bool json) {
uint32_t i, xshut;
for (i = 0, xshut = 1 ; i < VL53LXX_MAX_SENSORS ; i++, xshut <<= 1) {
char types[12] = "VL53L1X";
if (VL53L0X_xshut) {
if (VL53L1X_xshut) {
snprintf_P(types, sizeof(types), PSTR("VL53L1X%c%d"), IndexSeparator(), i +1);
}
float distance = (float)vl53l1x_data[i].distance / 10; // cm