From 67c4b1be1fa15b77cd31893f83be4b547ed5a068 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 8 Nov 2022 18:08:45 +0100 Subject: [PATCH] Fix VL53L1X compilation --- tasmota/tasmota_xsns_sensor/xsns_77_vl53l1x.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xsns_sensor/xsns_77_vl53l1x.ino b/tasmota/tasmota_xsns_sensor/xsns_77_vl53l1x.ino index d2f188a0f..0f30076a5 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_77_vl53l1x.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_77_vl53l1x.ino @@ -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