fix timeout remote

This commit is contained in:
MichaelDvP
2024-06-22 12:32:02 +02:00
parent bed7793dab
commit 5ffd4d87fb
2 changed files with 1 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ uint32_t Roomctrl::timeout_ = 0;
* set the temperature, * set the temperature,
*/ */
void Roomctrl::set_timeout(uint8_t t) { 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) { void Roomctrl::set_remotetemp(const uint8_t type, const uint8_t hc, const int16_t temp) {
if (!type_[hc] && !type) { if (!type_[hc] && !type) {

View File

@@ -38,7 +38,6 @@ class Roomctrl {
private: private:
static constexpr uint32_t SEND_INTERVAL = 15000; // 15 sec 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 static constexpr uint8_t HCS = 4; // max 4 heating circuits
enum SendType : uint8_t { TEMP, HUMI }; enum SendType : uint8_t { TEMP, HUMI };