Skip to content

Commit aa1243d

Browse files
committed
unoq: handle router bridge provides serial update
1 parent a7a7ca3 commit aa1243d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/RS485.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@
4545
#define RS485_DEFAULT_RE_PIN 7
4646
#elif defined(ARDUINO_UNO_Q)
4747
// Support for Uno Q with the SPE Shield mounted
48+
#if !ARDUINO_LIBRARY_DISCOVERY_PHASE
49+
#if __has_include("routerbridge_provides_serial.h")
50+
#define SERIAL_PORT_HARDWARE Serial1
51+
#else
4852
#define SERIAL_PORT_HARDWARE Serial
53+
#endif
54+
#endif
4955
#define RS485_DEFAULT_DE_PIN D8
5056
#define RS485_DEFAULT_RE_PIN D7
5157
#else

0 commit comments

Comments
 (0)