From 55c680ccddd062a802eb041ce7a80cd57e57cfe4 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 10 Aug 2019 22:45:39 +0200 Subject: [PATCH] fixes for #167 #166 --- lib/MyESP/MyESP.cpp | 2 +- src/ems-esp.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/MyESP/MyESP.cpp b/lib/MyESP/MyESP.cpp index 6d007795..ebe180f2 100644 --- a/lib/MyESP/MyESP.cpp +++ b/lib/MyESP/MyESP.cpp @@ -2109,7 +2109,7 @@ void MyESP::_bootupSequence() { if (isWifiConnected()) { _setSystemBootStatus(MYESP_BOOTSTATUS_BOOTED); // completed, reset flag - digitalWrite(LED_BUILTIN, LOW); // turn off LED + digitalWrite(LED_BUILTIN, HIGH); // turn off LED } } diff --git a/src/ems-esp.cpp b/src/ems-esp.cpp index ed751e2c..adc3aca2 100644 --- a/src/ems-esp.cpp +++ b/src/ems-esp.cpp @@ -586,7 +586,8 @@ void showInfo() { // Temperatures are *100 _renderShortValue("Set room temperature", "C", EMS_Thermostat.setpoint_roomTemp, 10); // *100 _renderShortValue("Current room temperature", "C", EMS_Thermostat.curr_roomTemp, 10); // *100 - } else if ((ems_getThermostatModel() == EMS_MODEL_FR10) || (ems_getThermostatModel() == EMS_MODEL_FW100) || (ems_getThermostatModel() == EMS_MODEL_FW120)) { + } else if ((ems_getThermostatModel() == EMS_MODEL_FR10) || (ems_getThermostatModel() == EMS_MODEL_FW100) + || (ems_getThermostatModel() == EMS_MODEL_FW120)) { // Temperatures are *10 _renderShortValue("Set room temperature", "C", EMS_Thermostat.setpoint_roomTemp, 1); // *10 _renderShortValue("Current room temperature", "C", EMS_Thermostat.curr_roomTemp, 1); // *10 @@ -814,7 +815,8 @@ void publishValues(bool force) { rootThermostat[THERMOSTAT_SELTEMP] = (double)EMS_Thermostat.setpoint_roomTemp / 100; if (EMS_Thermostat.curr_roomTemp != EMS_VALUE_SHORT_NOTSET) rootThermostat[THERMOSTAT_CURRTEMP] = (double)EMS_Thermostat.curr_roomTemp / 100; - } else if ((ems_getThermostatModel() == EMS_MODEL_FR10) || (ems_getThermostatModel() == EMS_MODEL_FW100) || (ems_getThermostatModel() == EMS_MODEL_FW120)) { + } else if ((ems_getThermostatModel() == EMS_MODEL_FR10) || (ems_getThermostatModel() == EMS_MODEL_FW100) + || (ems_getThermostatModel() == EMS_MODEL_FW120)) { if (EMS_Thermostat.setpoint_roomTemp != EMS_VALUE_SHORT_NOTSET) rootThermostat[THERMOSTAT_SELTEMP] = (double)EMS_Thermostat.setpoint_roomTemp / 10; if (EMS_Thermostat.curr_roomTemp != EMS_VALUE_SHORT_NOTSET)