From 6f926d965afdf1eb4f42b4105002d91f45560858 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 23 Sep 2019 09:58:01 +0200 Subject: [PATCH] bug in thermostat day mode with RC3000 --- src/ems.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ems.cpp b/src/ems.cpp index cf2329c60..ed1df88ea 100644 --- a/src/ems.cpp +++ b/src/ems.cpp @@ -1459,11 +1459,11 @@ void _process_RCPLUSStatusMessage(_EMS_RxTelegram * EMS_RxTelegram) { case EMS_OFFSET_RCPLUSStatusMessage_currsetpoint: // current setpoint temp, e.g. Thermostat -> all, telegram: 10 00 FF 06 01 A5 22 EMS_Thermostat.hc[hc].setpoint_roomTemp = _toByte(0); // value is * 2 break; - case EMS_OFFSET_RCPLUSStatusMessage_mode: // thermostat mode auto/manual - // manual : 10 00 FF 0A 01 A5 02 - // auto : Thermostat -> all, type 0x01A5 telegram: 10 00 FF 0A 01 A5 03 - EMS_Thermostat.hc[hc].mode = _bitRead(0, 0); // bit 1, mode (auto=1 or manual=0) - EMS_Thermostat.hc[EMS_TYPE_RC35StatusMessage_HC3].day_mode = _bitRead(0, 1); // get day mode flag + case EMS_OFFSET_RCPLUSStatusMessage_mode: // thermostat mode auto/manual + // manual : 10 00 FF 0A 01 A5 02 + // auto : Thermostat -> all, type 0x01A5 telegram: 10 00 FF 0A 01 A5 03 + EMS_Thermostat.hc[hc].mode = _bitRead(0, 0); // bit 1, mode (auto=1 or manual=0) + EMS_Thermostat.hc[hc].day_mode = _bitRead(0, 1); // get day mode flag break; }