From 738d7116987cb9505c0ea1fefad8e18b56d73f51 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 29 Jun 2020 08:13:41 +0200 Subject: [PATCH] Fixed debug conditionals --- src/BuildOpt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BuildOpt.h b/src/BuildOpt.h index 8e4918ae..70a64e60 100644 --- a/src/BuildOpt.h +++ b/src/BuildOpt.h @@ -216,7 +216,7 @@ // set which Serial port should be used for debug output #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_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } #else @@ -224,7 +224,7 @@ #define RADIOLIB_DEBUG_PRINTLN(...) {} #endif -#ifdef RADIOLIB_VERBOSE +#if defined(RADIOLIB_VERBOSE) #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } #else