Skip to content

Commit 5247c0c

Browse files
committed
fix definition of Serial interface state macro
Some examples use `if (Serial)` to check for the initialization state of the interface. This definition was broken by commit 3bf47f1 and is now fixed again.
1 parent cd681a2 commit 5247c0c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sduino/hardware/sduino/stm8/cores/sduino/HardwareSerial.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,8 @@ void HardwareSerial_end(void);
9595

9696
XPrintMethods (HardwareSerial,Serial)
9797

98+
// This define has to be at the end because it would interfear with the
99+
// XPrintMethods macro
100+
#define Serial HardwareSerial()
101+
98102
#endif

0 commit comments

Comments
 (0)