| SX126x-Arduino 2.0.1

sx126x-debug.h
Go to the documentation of this file.
1
15 // If not on PIO or not defined in platformio.ini
16 #ifndef LIB_DEBUG
17 // Debug output set to 0 to disable app debug output
18 #define LIB_DEBUG 0
19 #endif
20
21 #if LIB_DEBUG > 0
22 #define LOG_LIB(tag, ...) \
23 do \
24 { \
25 if (tag) \
26 Serial.printf("<%s> ", tag); \
27 Serial.printf(__VA_ARGS__); \
28 Serial.printf("\n"); \
29 } while (0)
30 #else
31 #define LOG_LIB(...)
32 #endif