aboutsummaryrefslogtreecommitdiff
path: root/libraries/SoftwareSerial/SoftwareSerial.h
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2013-06-04 11:28:30 +0200
committerMatthijs Kooijman <matthijs@stdin.nl>2015-01-26 17:03:25 +0100
commit3f02bcb49fca21a39d8c0d11c287addd9f7d7724 (patch)
tree250627352c2781fd45927e0d2171032f41ed0f42 /libraries/SoftwareSerial/SoftwareSerial.h
parent7366268025c04aa15a94d88191c0a510302236b0 (diff)
Add SoftwareSerial::stopListening()
This allows one to explicitly stop a SoftwareSerial instance from listening, without having to make another one listening.
Diffstat (limited to 'libraries/SoftwareSerial/SoftwareSerial.h')
-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 31bd229..e0e4746 100644
--- a/libraries/SoftwareSerial/SoftwareSerial.h
+++ b/libraries/SoftwareSerial/SoftwareSerial.h
@@ -87,6 +87,7 @@ public:
bool listen();
void end();
bool isListening() { return this == active_object; }
+ bool stopListening();
bool overflow() { bool ret = _buffer_overflow; _buffer_overflow = false; return ret; }
int peek();