Skip to content

Commit aef12e0

Browse files
authored
Merge pull request #11 from kolen/abstract-serial-fix-warning-no-return
Make AbstractSerial begin and getStream methods pure virtual
2 parents d5cf8da + ca46a2a commit aef12e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Serials.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ namespace Serials {
1515
// just to satisfy linker in gcc I needed to add empty parentheses to other virtual methods...
1616
class AbstractSerial {
1717
public:
18-
virtual void begin(int baudRate) {};
19-
virtual Stream *getStream() {};
18+
virtual void begin(int baudRate) = 0;
19+
virtual Stream *getStream() = 0;
2020
virtual ~AbstractSerial() {};
2121
};
2222

0 commit comments

Comments
 (0)