mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-13 02:22:55 +03:00
Implement Serial RX Buffer (#2239)
In connection with: https://github.com/esp8266/Arduino/issues/2237 https://github.com/esp8266/Arduino/issues/2037 https://github.com/esp8266/Arduino/issues/1683
This commit is contained in:
committed by
Ivan Grokhotkov
parent
edba2d2829
commit
f8a8a2a359
@ -87,6 +87,8 @@ public:
|
||||
|
||||
void end();
|
||||
|
||||
size_t setRxBufferSize(size_t size);
|
||||
|
||||
void swap()
|
||||
{
|
||||
swap(1);
|
||||
@ -138,7 +140,7 @@ public:
|
||||
protected:
|
||||
int _uart_nr;
|
||||
uart_t* _uart = nullptr;
|
||||
int _peek_char = -1;
|
||||
size_t _rx_size;
|
||||
};
|
||||
|
||||
extern HardwareSerial Serial;
|
||||
|
Reference in New Issue
Block a user