Fix Serial RX and add option for FIFO Full Threshold in Serial.begin

Fixes: https://github.com/espressif/arduino-esp32/issues/5005
This commit is contained in:
me-no-dev
2021-04-08 15:29:53 +03:00
parent 425619dfea
commit 371f382db7
5 changed files with 25 additions and 18 deletions

View File

@ -55,7 +55,7 @@ class HardwareSerial: public Stream
public:
HardwareSerial(int uart_nr);
void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false, unsigned long timeout_ms = 20000UL);
void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false, unsigned long timeout_ms = 20000UL, uint8_t rxfifo_full_thrhd = 112);
void end();
void updateBaudRate(unsigned long baud);
int available(void);