Page 1 of 1

Web Wizard and WaterLevelATO bug?

Posted: Fri Jun 15, 2018 10:29 pm
by aensor
Hi,

With a Water Level extension (but not multilevel water level) the Web Wizard generates the following statement for a timeout of 10 minutes on port 5:

Code: Select all

ReefAngel.WaterLevelATO( Box1_Port5,10,15,600 );
Am I misunderstanding or shouldn't it generate something more like:

Code: Select all

ReefAngel.WaterLevelATO( Box1_Port5,600,98,100 );
which makes my ATO work correctly.

Checking the ReefAngel class the WaterLevelATO method is declared to have the following parameter order:

Code: Select all

void ReefAngelClass::WaterLevelATO(byte ATORelay, int ATOTimeout, byte LowLevel, byte HighLevel)
which suggests the last three parameters are generated by the Web Wizard in an incorrect order (and I don't know why it chooses to use 10 and 15 for the levels rather than numbers closer to 100).

Thanks.

Re: Web Wizard and WaterLevelATO bug?

Posted: Tue Jun 26, 2018 10:08 pm
by rimai
You are correct.
Thanks for finding the bug.
I have corrected the problem of the wizard and it is now generating in the correct order.
The 10% and 15% are default values. Are you sure you have changed them to 98% and 100%?