Skip to content

Commit

Permalink
Fix default debug port on non-Arduino platforms (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Jan 11, 2025
1 parent 2ca2ddf commit 9a8affd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/BuildOpt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9a8affd

Please sign in to comment.