1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-13 02:22:55 +03:00

uart: fix wdt input overrun (#4536)

* uart: fix wdt on uart input overrun, expose in HardwareSerial::hasOverrun()
This commit is contained in:
david gauchard
2018-03-21 13:28:34 +01:00
committed by GitHub
parent 6d3f0b4023
commit 6580bf3477
3 changed files with 36 additions and 0 deletions

View File

@ -137,6 +137,11 @@ public:
bool isRxEnabled(void);
int baudRate(void);
bool hasOverrun(void)
{
return uart_has_overrun(_uart);
}
protected:
int _uart_nr;
uart_t* _uart = nullptr;