mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 03:09:59 +00:00
Here we go
This commit is contained in:
parent
8ebe0edc5a
commit
979d12d607
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user