The serial overhead for each function is added once, then each repeated use is just a function call.
]If you do not use an array/variable, or there is no side effect of using it, then it will be completely dropped. Are the messages you commented out used/repeated any where else ( not some random code somewhere, but code that is actually used, in the app your compiling ).
]Of course we can only speculate without your code to test. Some of your claims seem a bit far fetched and there is probably something else causing a problem.
]For fun, create a small test app. Add serial to it then comment it out. Notice how the code does not grow.
Of course we can only speculate without your code to test. Some of your claims seem a bit far fetched and there is probably something else causing a problem.
You aren't using the Arduino IDE are you?
Because your code needs tremendous mods to even work in the IDE, too much so that I've lost motivation.
I have a few FAQ's that might help you with the library situation.
I ran across this recently -- http://subethasoftware.com/2013/04/09/arduino-compiler-problem-with-ifdefs-solved/I can't say if it applies to your situation, but it could be worth a look.
Maybe an include:Code: [Select]#include "../Debouncer/Debouncer.h"even still, why not just include the library like you do elsewhere:Code: [Select]#include <Debouncer.h>
I haven't got much time lately, but post it and I'll check it out.
The sram just gets gridlocked.
QuoteThe sram just gets gridlocked.Are you still using precious SRAM for debug messages?