From fd19c42cf085e5528020c577a96eb3e85989f515 Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Wed, 24 Apr 2019 13:05:21 +0300 Subject: [PATCH] Critical thermostat initialization bug fixed --- lighthub/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 6352ee0..8da1fef 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -901,6 +901,10 @@ void applyConfig() { switch (it.itemType) { case CH_THERMO: if (cmd<1) it.setCmd(CMD_OFF); + pinMode(pin, OUTPUT); + digitalWrite(pin, false); //Initially, all thermostates are LOW (OFF for electho heaters, open for water NO) + debugSerial<