Skip to content

Commit 7c1a683

Browse files
committed
API compatibility to AVR, ESP8266, et al
1 parent cec3fca commit 7c1a683

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: cores/esp32/HardwareSerial.h

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ class HardwareSerial: public Stream
6666
void flush( bool txOnly);
6767
size_t write(uint8_t);
6868
size_t write(const uint8_t *buffer, size_t size);
69+
inline size_t write(const char * buffer, size_t size)
70+
{
71+
return write((uint8_t*) buffer, size);
72+
}
6973

7074
inline size_t write(const char * s)
7175
{

0 commit comments

Comments
 (0)