Fix default debug port on non-Arduino platforms (#1380)

This commit is contained in:
jgromes 2025-01-11 09:32:12 +01:00
parent 2ca2ddf968
commit 9a8affde8e

View file

@ -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