Closed star297 closed 3 years ago
I have found a way but would be nice to be able to control this from the main program.
In FONAConfig.h
comment out the #define ADAFRUIT_FONA_DEBUG
as shown below
reload the Aduino IDE and compile.
/* ADAFRUIT_FONA_DEBUG
* When defined, will cause extensive debug output on the
* DebugStream set in the appropriate platform/ header.
*/
//#define ADAFRUIT_FONA_DEBUG
No, this is recommended way to do it and it's done in most C programs in this way.
The reason it is done like this is it allows the debug stuff to be EXCLUDED from the program if you don't want it, which reduces the size of the program - no point in compiling that code into the program if you don't need it
If you did it at run-time, you would need if{} around all the debug code, but it would still be compiled into your program, wasting space.
Cheers
On Fri, 2 Apr 2021, 21:27 Paul Staron, @.***> wrote:
I have found a way but would be nice to be able to control this from the main program.
In FONAConfig.h
comment out the #define ADAFRUIT_FONA_DEBUG as shown below
reload the Aduino IDE and compile.
/* ADAFRUIT_FONA_DEBUG
- When defined, will cause extensive debug output on the
- DebugStream set in the appropriate platform/ header. */
//#define ADAFRUIT_FONA_DEBUG
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/botletics/SIM7000-LTE-Shield/issues/236#issuecomment-812697980, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAGDCQHB3MI43OAXGMH7ULTGYSDTANCNFSM42JLB5YQ .
How can I stop the serial AT DEBUG output? It is handy when getting set up then its a pita later on when I want to debug on my own code.
I normally use something like
#define DEBUG true
, can this be implemented somewhere ?