Add temp test

Add temp test
This commit is contained in:
Theo Arends 2019-05-22 12:31:23 +02:00
parent b18eee50e2
commit a623d1e90b

View File

@ -323,7 +323,7 @@ void EnergyMqttShow(void)
void EnergyOverTempCheck()
{
if (global_update) {
if (power && (global_temperature > ENERGY_OVERTEMP)) { // Device overtemp, turn off relays
if (power && (global_temperature != 9999) && (global_temperature > ENERGY_OVERTEMP)) { // Device overtemp, turn off relays
SetAllPower(POWER_ALL_OFF, SRC_OVERTEMP);
}
}