I've got an question, my float sensors are inversed and due to the construction of the sensors it isn't an option the turn the float sensor arround. So I have to change it in code.
I've found the code below:
Code: Select all
void check_nivel() // Verifica o nível do reef e fish only.
{
if ((myAnalogRead(sensor5) > 400) || (myAnalogRead(sensor6) > 400) || ((myAnalogRead(sensor2) < 400) && (bitRead(tpa_status, 1) == false)))
{
nivel_status1 = true; // Sinaliza nivel baixo em um dos aquários ou sump
}
else
{
nivel_status1 = false; // Sinaliza nível normal dos aquários e sump
}
To inverse the signaling do I have to swap the nivel_status1 values true and false?
I was also wondering if there's a failsave mechanism if the float sensor in the reef is broken? I'm a little bit afraid that if the sensor is stuck the ATO will overflow the aquarium. Is it possible to set a max. runtime or another failsave option?
Regards!