mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-16 00:43:00 +03:00
comments on Arduino flush() method (#8318)
This commit is contained in:
@ -183,7 +183,7 @@ public:
|
||||
{
|
||||
return static_cast<int>(uart_tx_free(_uart));
|
||||
}
|
||||
void flush(void) override;
|
||||
void flush(void) override; // wait for all outgoing characters to be sent, output buffer is empty after this call
|
||||
size_t write(uint8_t c) override
|
||||
{
|
||||
return uart_write_char(_uart, c);
|
||||
|
@ -110,7 +110,10 @@ class Print {
|
||||
size_t println(const Printable&);
|
||||
size_t println(void);
|
||||
|
||||
virtual void flush() { /* Empty implementation for backward compatibility */ }
|
||||
// flush():
|
||||
// Empty implementation by default in Print::
|
||||
// should wait for all outgoing characters to be sent, output buffer is empty after this call
|
||||
virtual void flush() { }
|
||||
|
||||
// by default write timeout is possible (outgoing data from network,serial..)
|
||||
// (children can override to false (like String))
|
||||
|
Reference in New Issue
Block a user