Fix default debug port on non-Arduino platforms (#1380)
This commit is contained in:
parent
2ca2ddf968
commit
9a8affde8e
1 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,11 @@
|
||||||
// set which output port should be used for debug output
|
// 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)
|
// may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms)
|
||||||
#if !defined(RADIOLIB_DEBUG_PORT)
|
#if !defined(RADIOLIB_DEBUG_PORT)
|
||||||
|
#if ARDUINO >= 100
|
||||||
#define RADIOLIB_DEBUG_PORT Serial
|
#define RADIOLIB_DEBUG_PORT Serial
|
||||||
|
#else
|
||||||
|
#define RADIOLIB_DEBUG_PORT stdout
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -433,10 +437,6 @@
|
||||||
#define RADIOLIB_NONVOLATILE_READ_DWORD(addr) (*((uint32_t *)(void *)(addr)))
|
#define RADIOLIB_NONVOLATILE_READ_DWORD(addr) (*((uint32_t *)(void *)(addr)))
|
||||||
#define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
|
#define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
|
||||||
|
|
||||||
#if !defined(RADIOLIB_DEBUG_PORT)
|
|
||||||
#define RADIOLIB_DEBUG_PORT stdout
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DEC 10
|
#define DEC 10
|
||||||
#define HEX 16
|
#define HEX 16
|
||||||
#define OCT 8
|
#define OCT 8
|
||||||
|
|
Loading…
Add table
Reference in a new issue