From 3a1bbda4a501da3617e19ceade10c9d4842edd12 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 28 Aug 2022 18:22:06 +0200 Subject: [PATCH] refactor tm1621 --- tasmota/tasmota_xdrv_driver/xdrv_87_tm1621_sonoff.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_87_tm1621_sonoff.ino b/tasmota/tasmota_xdrv_driver/xdrv_87_tm1621_sonoff.ino index 5b967fa31..1feafe243 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_87_tm1621_sonoff.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_87_tm1621_sonoff.ino @@ -242,9 +242,8 @@ float TM1621GetTemperatureValues(uint32_t index) { if (data) { idx++; data += 13; // strlen("Temperature") + 2; - float new_value = CharToFloat(data); if (idx == index) { - value = new_value; + value = CharToFloat(data); if (Tm1621.temp_sensors) { break; }