From 5ffd4d87fb727c8038d311d7a251cde8a915c0a0 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sat, 22 Jun 2024 12:32:02 +0200 Subject: [PATCH] fix timeout remote --- src/roomcontrol.cpp | 2 +- src/roomcontrol.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 };