mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
Fix first sensor in case GlobalTemp is set wrong
Fix first of two sensors in case GlobalTemp is set wrong (#17694)
This commit is contained in:
parent
f71465a182
commit
e0b17af307
@ -459,6 +459,7 @@ void TM1621Show(void) {
|
||||
temperature = TM1621GetTemperatureValues(Tm1621.temp_sensors_rotate);
|
||||
ext_snprintf_P(Tm1621.row[1], sizeof(Tm1621.row[1]), PSTR("%d"), Tm1621.temp_sensors_rotate);
|
||||
} else {
|
||||
temperature = TM1621GetTemperatureValues(1); // Fix in case GlobalTemp is set wrong (#17694)
|
||||
float temperature2 = TM1621GetTemperatureValues(2);
|
||||
ext_snprintf_P(Tm1621.row[1], sizeof(Tm1621.row[1]), PSTR("%1_f"), &temperature2);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user