diff --git a/hardware/LightHub.pdf b/hardware/LightHub.pdf new file mode 100644 index 0000000..2b21734 Binary files /dev/null and b/hardware/LightHub.pdf differ diff --git a/lighthub/item.cpp b/lighthub/item.cpp index 66716a3..a2001da 100644 --- a/lighthub/item.cpp +++ b/lighthub/item.cpp @@ -918,7 +918,7 @@ int Item::checkFM() { int pwr = node.getResponseBuffer(3); if (pwr > 0) aJson.addNumberToObject(out, "pwr", pwr / 10.); else aJson.addNumberToObject(out, "pwr", 0); - if (ftemp>fset+FM_OVERHEAT_CELSIUS && set) + if (ftemp>FM_OVERHEAT_CELSIUS && set) { mqttClient.publish("/alarm/ovrht", itemArr->name); Ctrl(CMD_OFF); //Shut down diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 06a56f3..f6ddd09 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -1121,7 +1121,7 @@ void thermoLoop(void) { mqttClient.publish("/alarm/snsr", item->name); } - if (curtemp > itemTempSetting + THERMO_OVERHEAT_CELSIUS) mqttClient.publish("/alarm/ovrht", item->name); + if (curtemp > THERMO_OVERHEAT_CELSIUS) mqttClient.publish("/alarm/ovrht", item->name); thermostatCheckPrinted = true; Serial.print(item->name); diff --git a/lighthub/options.h b/lighthub/options.h index 109979e..ccf0c2f 100644 --- a/lighthub/options.h +++ b/lighthub/options.h @@ -1,6 +1,6 @@ // Configuration of drivers enabled #ifndef PIO_SRC_REV -#define PIO_SRC_REV v0.994 +#define PIO_SRC_REV v0.995 #endif #define TXEnablePin 13 @@ -10,8 +10,8 @@ #define IET_ATTEMPTS 1 #define THERMO_GIST_CELSIUS 2 -#define THERMO_OVERHEAT_CELSIUS 5 -#define FM_OVERHEAT_CELSIUS 5. +#define THERMO_OVERHEAT_CELSIUS 38 +#define FM_OVERHEAT_CELSIUS 40. #define EEPROM_offset 32+6