diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2015-03-05 11:59:32 +0100 |
---|---|---|
committer | Martino Facchin <m.facchin@arduino.cc> | 2015-03-05 12:30:01 +0100 |
commit | 97fb130175f777a0d3e051f2bdd74c5e0795e470 (patch) | |
tree | 8da98d1f23c4ce891ea66d400eb553fbaca23185 | |
parent | 230f987ba6aa247f8b7ade116283161705e90406 (diff) |
SoftwareSerial: match bool API with HardwareSerial
-rw-r--r-- | libraries/SoftwareSerial/SoftwareSerial.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/SoftwareSerial/SoftwareSerial.h b/libraries/SoftwareSerial/SoftwareSerial.h index e28da98..274f3df 100644 --- a/libraries/SoftwareSerial/SoftwareSerial.h +++ b/libraries/SoftwareSerial/SoftwareSerial.h @@ -101,6 +101,7 @@ public: virtual int read();
virtual int available();
virtual void flush();
+ operator bool() { return true; }
using Print::write;
|