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:
@ -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;
|
||||
|
Reference in New Issue
Block a user