Skip to content

Commit ee1ef4a

Browse files
d-a-vdevyte
authored andcommitted
restore HardwareSerial::write(str) (esp8266#4564)
* restore HardwareSerial::write(str) * restore HardwareSerial::write(str) (this time checked)
1 parent 2105b8b commit ee1ef4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/esp8266/HardwareSerial.h

+4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ class HardwareSerial: public Stream
157157
{
158158
return uart_write(_uart, (const char*)buffer, size);
159159
}
160+
size_t write(const char *buffer)
161+
{
162+
return buffer? uart_write(_uart, buffer, strlen(buffer)): 0;
163+
}
160164
operator bool() const
161165
{
162166
return _uart != 0;

0 commit comments

Comments
 (0)