disable the ATO?

Do you have a question on how to do something.
Ask in here.
Post Reply
JoshSD
Posts: 37
Joined: Sun Dec 04, 2011 3:19 pm

disable the ATO?

Post by JoshSD »

Hi,

I've moved my ATO to a dedicated controller so would like to disable it to save the code space for other functions. What is the easiest way to do it? I've commented out the #include <RA_ATO.h> statement in my INO file, and the ATO functions assigned to the relay port, but still get an error when compiling

\Documents\Arduino\libraries\RA_Wifi\RA_Wifi.cpp: In function 'void SendXMLData(bool)':
\Documents\Arduino\libraries\RA_Wifi\RA_Wifi.cpp:810: error: 'class ReefAngelClass' has no member named 'LowATO'
\Documents\Arduino\libraries\RA_Wifi\RA_Wifi.cpp:812: error: 'class ReefAngelClass' has no member named 'HighATO'


I'm hoping there's a quick way to comment something in order to disable it completely...
JoshSD
Posts: 37
Joined: Sun Dec 04, 2011 3:19 pm

Re: disable the ATO?

Post by JoshSD »

This error may not actually be related. But I still have the question on how to disable ATO. Thanks
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: disable the ATO?

Post by rimai »

You still need the include. It's part of the core code.
There is no way to disable it.
Arduino automatically strips out anything that is not used, so by not using the function, it is the best you are going to get.
Roberto.
Post Reply