From 9a8affde8e0b3d66ff91016dad0da9ef03d41eb3 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 11 Jan 2025 09:32:12 +0100 Subject: [PATCH] Fix default debug port on non-Arduino platforms (#1380) --- src/BuildOpt.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BuildOpt.h b/src/BuildOpt.h index d64f50061..29be4d8ae 100644 --- a/src/BuildOpt.h +++ b/src/BuildOpt.h @@ -29,7 +29,11 @@ // set which output port should be used for debug output // may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms) #if !defined(RADIOLIB_DEBUG_PORT) - #define RADIOLIB_DEBUG_PORT Serial + #if ARDUINO >= 100 + #define RADIOLIB_DEBUG_PORT Serial + #else + #define RADIOLIB_DEBUG_PORT stdout + #endif #endif /* @@ -433,10 +437,6 @@ #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) (*((uint32_t *)(void *)(addr))) #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type; - #if !defined(RADIOLIB_DEBUG_PORT) - #define RADIOLIB_DEBUG_PORT stdout - #endif - #define DEC 10 #define HEX 16 #define OCT 8