aboutsummaryrefslogtreecommitdiff
path: root/libraries/SoftwareSerial
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2015-03-05 11:59:32 +0100
committerMartino Facchin <m.facchin@arduino.cc>2015-03-05 12:30:01 +0100
commit97fb130175f777a0d3e051f2bdd74c5e0795e470 (patch)
tree8da98d1f23c4ce891ea66d400eb553fbaca23185 /libraries/SoftwareSerial
parent230f987ba6aa247f8b7ade116283161705e90406 (diff)
SoftwareSerial: match bool API with HardwareSerial
Diffstat (limited to 'libraries/SoftwareSerial')
-rw-r--r--libraries/SoftwareSerial/SoftwareSerial.h1
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;