diff options
Diffstat (limited to 'libraries/SoftwareSerial/SoftwareSerial.h')
-rw-r--r-- | libraries/SoftwareSerial/SoftwareSerial.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/SoftwareSerial/SoftwareSerial.h b/libraries/SoftwareSerial/SoftwareSerial.h index e0e4746..27c0bfc 100644 --- a/libraries/SoftwareSerial/SoftwareSerial.h +++ b/libraries/SoftwareSerial/SoftwareSerial.h @@ -88,7 +88,7 @@ public: void end();
bool isListening() { return this == active_object; }
bool stopListening();
- bool overflow() { bool ret = _buffer_overflow; _buffer_overflow = false; return ret; }
+ bool overflow() { bool ret = _buffer_overflow; if (ret) _buffer_overflow = false; return ret; }
int peek();
virtual size_t write(uint8_t byte);
|