mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-04-04 22:07:30 +00:00
Optional debug messages at compile time to save FLASH space
This commit is contained in:
parent
64cad981fa
commit
37724bbabf
16 changed files with 63 additions and 4 deletions
14
Debug.h
14
Debug.h
|
|
@ -19,8 +19,11 @@
|
|||
#if !defined(DEBUG_H)
|
||||
#define DEBUG_H
|
||||
|
||||
#include "Config.h"
|
||||
#include "Globals.h"
|
||||
|
||||
#if defined(ENABLE_DEBUG)
|
||||
|
||||
#define DEBUG1(a) serial.writeDebug((a))
|
||||
#define DEBUG2(a,b) serial.writeDebug((a),(b))
|
||||
#define DEBUG2I(a,b) serial.writeDebugI((a),(b))
|
||||
|
|
@ -28,5 +31,16 @@
|
|||
#define DEBUG4(a,b,c,d) serial.writeDebug((a),(b),(c),(d))
|
||||
#define DEBUG5(a,b,c,d,e) serial.writeDebug((a),(b),(c),(d),(e))
|
||||
|
||||
#else
|
||||
|
||||
#define DEBUG1(a)
|
||||
#define DEBUG2(a,b)
|
||||
#define DEBUG2I(a,b)
|
||||
#define DEBUG3(a,b,c)
|
||||
#define DEBUG4(a,b,c,d)
|
||||
#define DEBUG5(a,b,c,d,e)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue