From a65b6bf19d58139bc18cd32ebb5047940bc73887 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 5 Feb 2022 13:11:42 +0100 Subject: [PATCH] fix compile warning --- src/devices/thermostat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 1f4dc7091..0c6e14ea1 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -1005,7 +1005,7 @@ void Thermostat::process_RC300Set(std::shared_ptr telegram) { // see https://github.com/emsesp/EMS-ESP32/issues/321 int8_t tat = hc->tempautotemp; telegram->read_value(tat, 8); - if (tat == 0xFF) { + if ((uint8_t)tat == 0xFF) { tat = -2; } has_update(hc->tempautotemp, tat);