mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
fix timeout remote
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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 };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user