Fixed debug conditionals

This commit is contained in:
jgromes 2020-06-29 08:13:41 +02:00
parent 49259109d3
commit 738d711698

View file

@ -216,7 +216,7 @@
// set which Serial port should be used for debug output // set which Serial port should be used for debug output
#define RADIOLIB_DEBUG_PORT Serial #define RADIOLIB_DEBUG_PORT Serial
#ifdef RADIOLIB_DEBUG #if defined(RADIOLIB_DEBUG)
#define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
#define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
#else #else
@ -224,7 +224,7 @@
#define RADIOLIB_DEBUG_PRINTLN(...) {} #define RADIOLIB_DEBUG_PRINTLN(...) {}
#endif #endif
#ifdef RADIOLIB_VERBOSE #if defined(RADIOLIB_VERBOSE)
#define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
#define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
#else #else