diff --git a/src/roomcontrol.cpp b/src/roomcontrol.cpp index f789b72c0..1e958d206 100644 --- a/src/roomcontrol.cpp +++ b/src/roomcontrol.cpp @@ -34,7 +34,7 @@ uint32_t Roomctrl::timeout_ = 0; * set the temperature, */ void Roomctrl::set_timeout(uint8_t t) { - timeout_ = t * 3600; + timeout_ = t * 3600000; // ms } void Roomctrl::set_remotetemp(const uint8_t type, const uint8_t hc, const int16_t temp) { if (!type_[hc] && !type) { diff --git a/src/roomcontrol.h b/src/roomcontrol.h index 5d546e9ec..4dfe948ec 100644 --- a/src/roomcontrol.h +++ b/src/roomcontrol.h @@ -38,7 +38,6 @@ class Roomctrl { private: static constexpr uint32_t SEND_INTERVAL = 15000; // 15 sec - static constexpr uint32_t TIMEOUT = 86400000; // 24 hour static constexpr uint8_t HCS = 4; // max 4 heating circuits enum SendType : uint8_t { TEMP, HUMI };