fix for RC35 modes (auto, day, night)

This commit is contained in:
Paul
2019-11-08 12:02:17 +01:00
parent 2157004c10
commit 1a8692a965
2 changed files with 13 additions and 1 deletions

View File

@@ -168,6 +168,14 @@ _EMS_THERMOSTAT_MODE _getThermostatMode(uint8_t hc_num) {
} else if (mode == 2) { } else if (mode == 2) {
thermoMode = EMS_THERMOSTAT_MODE_AUTO; thermoMode = EMS_THERMOSTAT_MODE_AUTO;
} }
} else { // default for all other thermostats
if (mode == 0) {
thermoMode = EMS_THERMOSTAT_MODE_NIGHT;
} else if (mode == 1) {
thermoMode = EMS_THERMOSTAT_MODE_DAY;
} else if (mode == 2) {
thermoMode = EMS_THERMOSTAT_MODE_AUTO;
}
} }
return thermoMode; return thermoMode;
@@ -444,6 +452,10 @@ void showInfo() {
myDebug_P(PSTR(" Mode is set to manual")); myDebug_P(PSTR(" Mode is set to manual"));
} else if (thermoMode == EMS_THERMOSTAT_MODE_AUTO) { } else if (thermoMode == EMS_THERMOSTAT_MODE_AUTO) {
myDebug_P(PSTR(" Mode is set to auto")); myDebug_P(PSTR(" Mode is set to auto"));
} else if (thermoMode == EMS_THERMOSTAT_MODE_NIGHT) {
myDebug_P(PSTR(" Mode is set to night"));
} else if (thermoMode == EMS_THERMOSTAT_MODE_DAY) {
myDebug_P(PSTR(" Mode is set to day"));
} }
// Render Thermostat Day Mode // Render Thermostat Day Mode

View File

@@ -1 +1 @@
#define APP_VERSION "1.9.4b8" #define APP_VERSION "1.9.4b9"