mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
set HC to active for RC35 - https://github.com/proddy/EMS-ESP/issues/162
This commit is contained in:
@@ -244,7 +244,7 @@ void ems_init() {
|
|||||||
|
|
||||||
// init all heating circuits
|
// init all heating circuits
|
||||||
for (uint8_t i = 0; i < EMS_THERMOSTAT_MAXHC; i++) {
|
for (uint8_t i = 0; i < EMS_THERMOSTAT_MAXHC; i++) {
|
||||||
EMS_Thermostat.hc[i].hc = i;
|
EMS_Thermostat.hc[i].hc = i+1;
|
||||||
EMS_Thermostat.hc[i].active = false;
|
EMS_Thermostat.hc[i].active = false;
|
||||||
EMS_Thermostat.hc[i].mode = EMS_VALUE_INT_NOTSET;
|
EMS_Thermostat.hc[i].mode = EMS_VALUE_INT_NOTSET;
|
||||||
EMS_Thermostat.hc[i].day_mode = EMS_VALUE_INT_NOTSET;
|
EMS_Thermostat.hc[i].day_mode = EMS_VALUE_INT_NOTSET;
|
||||||
@@ -1569,7 +1569,7 @@ uint8_t _getHeatingCircuit(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
case EMS_TYPE_RC35StatusMessage_HC1:
|
case EMS_TYPE_RC35StatusMessage_HC1:
|
||||||
case EMS_TYPE_RC35Set_HC1:
|
case EMS_TYPE_RC35Set_HC1:
|
||||||
default:
|
default:
|
||||||
hc_num = 1;
|
hc_num = 1; // also default
|
||||||
break;
|
break;
|
||||||
case EMS_TYPE_RC35StatusMessage_HC2:
|
case EMS_TYPE_RC35StatusMessage_HC2:
|
||||||
case EMS_TYPE_RC35Set_HC2:
|
case EMS_TYPE_RC35Set_HC2:
|
||||||
@@ -1585,6 +1585,8 @@ uint8_t _getHeatingCircuit(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EMS_Thermostat.hc[hc_num-1].active = true;
|
||||||
|
|
||||||
return (hc_num);
|
return (hc_num);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user