Skip to content

Commit b95533f

Browse files
committed
SoftwareSerial: match bool API with HardwareSerial
1 parent 90ca393 commit b95533f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hardware/arduino/avr/libraries/SoftwareSerial/SoftwareSerial.h

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class SoftwareSerial : public Stream
101101
virtual int read();
102102
virtual int available();
103103
virtual void flush();
104+
operator bool() { return true; }
104105

105106
using Print::write;
106107

0 commit comments

Comments
 (0)