Overheat automatic clearing
Posted: Tue Jun 21, 2016 1:50 am
Hi,
I would like to have an automatic clearing of the Overheat status, if the temperature has decreased of a given amount (e.g. 3 degrees). This would guarantee that the system is reset if conditions are OK, even if I am not able to connect to internet from remote.
Can anyone check if this code would do? Thanks.
void CustomOverheatClear(byte probe)
{
if((bitRead(ReefAngel.AlertFlags, OverheatFlag)) && (ReefAngel.Params.Temp[probe] <= InternalMemory.OverheatTemp_read()-3.0))
ReefAngel.OverheatClear();
}
loop()
{
//...
CustomOverheatClear(T1_PROBE);
//..
}
I would like to have an automatic clearing of the Overheat status, if the temperature has decreased of a given amount (e.g. 3 degrees). This would guarantee that the system is reset if conditions are OK, even if I am not able to connect to internet from remote.
Can anyone check if this code would do? Thanks.
void CustomOverheatClear(byte probe)
{
if((bitRead(ReefAngel.AlertFlags, OverheatFlag)) && (ReefAngel.Params.Temp[probe] <= InternalMemory.OverheatTemp_read()-3.0))
ReefAngel.OverheatClear();
}
loop()
{
//...
CustomOverheatClear(T1_PROBE);
//..
}