We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1863c25 commit 49b8eefCopy full SHA for 49b8eef
cores/arduino/HardwareSerial.cpp
@@ -487,6 +487,11 @@ int HardwareSerial::availableForWrite(void)
487
return tail - head - 1;
488
}
489
490
+void HardwareSerial::flush()
491
+{
492
+ flush(0);
493
+}
494
+
495
void HardwareSerial::flush(uint32_t timeout)
496
{
497
// If we have never written a byte, no need to flush. This special
cores/arduino/HardwareSerial.h
@@ -125,7 +125,8 @@ class HardwareSerial : public Stream {
125
virtual int peek(void);
126
virtual int read(void);
127
int availableForWrite(void);
128
- virtual void flush(uint32_t timeout = 0);
+ virtual void flush();
129
+ void flush(uint32_t timeout);
130
virtual size_t write(uint8_t);
131
inline size_t write(unsigned long n)
132
0 commit comments