mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 10:12:50 +00:00
Here we go
This commit is contained in:
@@ -19,11 +19,20 @@
|
|||||||
|
|
||||||
#ifdef USE_SEGGER
|
#ifdef USE_SEGGER
|
||||||
#define DEBUG_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
#define DEBUG_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
||||||
|
#define INFO_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
||||||
|
#define WARN_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
||||||
|
#define ERROR_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#ifdef DEBUG_PORT
|
#ifdef DEBUG_PORT
|
||||||
#define DEBUG_MSG(...) DEBUG_PORT.logDebug(__VA_ARGS__)
|
#define DEBUG_MSG(...) DEBUG_PORT.logDebug(__VA_ARGS__)
|
||||||
|
#define INFO_MSG(...) DEBUG_PORT.logDebug(__VA_ARGS__)
|
||||||
|
#define WARN_MSG(...) DEBUG_PORT.logDebug(__VA_ARGS__)
|
||||||
|
#define ERROR_MSG(...) DEBUG_PORT.logDebug(__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define DEBUG_MSG(...)
|
#define DEBUG_MSG(...)
|
||||||
|
#define INFO_MSG(...)
|
||||||
|
#define WARN_MSG(...)
|
||||||
|
#define ERROR_MSG(...)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user