From 1a8692a9658b5237fc998538994a743f42c8a0f5 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 8 Nov 2019 12:02:17 +0100 Subject: [PATCH] fix for RC35 modes (auto, day, night) --- src/ems-esp.cpp | 12 ++++++++++++ src/version.h | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ems-esp.cpp b/src/ems-esp.cpp index 52323fdb9..bf27bc164 100644 --- a/src/ems-esp.cpp +++ b/src/ems-esp.cpp @@ -168,6 +168,14 @@ _EMS_THERMOSTAT_MODE _getThermostatMode(uint8_t hc_num) { } else if (mode == 2) { 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; @@ -444,6 +452,10 @@ void showInfo() { myDebug_P(PSTR(" Mode is set to manual")); } else if (thermoMode == EMS_THERMOSTAT_MODE_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 diff --git a/src/version.h b/src/version.h index 89a25f01c..99a0cd1d7 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define APP_VERSION "1.9.4b8" +#define APP_VERSION "1.9.4b9"