Skip to content

Commit e903f2b

Browse files
committed
Make RS485Class extend Stream instead of HardwareSerial for AVR compatibility
1 parent ac34ebb commit e903f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RS485.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define RS845_DEFAULT_DE_PIN A6
3232
#define RS845_DEFAULT_RE_PIN A5
3333

34-
class RS485Class : public HardwareSerial {
34+
class RS485Class : public Stream {
3535
public:
3636
RS485Class(HardwareSerial& hwSerial, int txPin, int dePin, int rePin);
3737

0 commit comments

Comments
 (0)