Certainly a good idea but not where I'm headed. Null would be stripped from the sketch by the optimizer.
The example above, with one change...
#include <TinyDebugNull.h>
void setup( void )
{
Debug.begin( 250000 );
}
void loop( void )
{
Debug.println( F( "Caitlin! " ) );
delay( 1000 );
}
...would essentially become this...
#include <TinyDebugNull.h>
void setup( void )
{
}
void loop( void )
{
delay( 1000 );
}
It would allow debugging to be easily turned on and off.