Skip to content

Commit f788720

Browse files
committed
Added the waitForBufferSpace(uint8_t) function and its associated variable to the .h file.
1 parent 5c11f4f commit f788720

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hardware/arduino/cores/arduino/HardwareSerial.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class HardwareSerial : public Stream
4343
uint8_t _rxcie;
4444
uint8_t _udrie;
4545
uint8_t _u2x;
46+
uint8_t _serial_buffer_wait;
4647
public:
4748
HardwareSerial(ring_buffer *rx_buffer, ring_buffer *tx_buffer,
4849
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
@@ -57,6 +58,7 @@ class HardwareSerial : public Stream
5758
virtual void flush(void);
5859
virtual size_t write(uint8_t);
5960
using Print::write; // pull in write(str) and write(buf, size) from Print
61+
virtual void waitForBufferSpace(uint8_t);
6062
};
6163

6264
#if defined(UBRRH) || defined(UBRR0H)

0 commit comments

Comments
 (0)