This commit is contained in:
Cristian Maglie 2015-11-18 10:03:05 +01:00
commit b15e001b0d
1 changed files with 1 additions and 7 deletions

View File

@ -469,13 +469,7 @@ size_t SoftwareSerial::write(uint8_t b)
void SoftwareSerial::flush()
{
if (!isListening())
return;
uint8_t oldSREG = SREG;
cli();
_receive_buffer_head = _receive_buffer_tail = 0;
SREG = oldSREG;
// There is no tx buffering, simply return
}
int SoftwareSerial::peek()