From 3f02bcb49fca21a39d8c0d11c287addd9f7d7724 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 4 Jun 2013 11:28:30 +0200 Subject: Add SoftwareSerial::stopListening() This allows one to explicitly stop a SoftwareSerial instance from listening, without having to make another one listening. --- libraries/SoftwareSerial/SoftwareSerial.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libraries/SoftwareSerial/SoftwareSerial.h') 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(); -- cgit v1.2.3-18-g5258