1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

restore HardwareSerial::write(str) (#4564)

* restore HardwareSerial::write(str)

* restore HardwareSerial::write(str) (this time checked)
This commit is contained in:
david gauchard 2018-03-26 17:15:29 +02:00 committed by Develo
parent 2105b8b06f
commit ee1ef4a795

View File

@ -157,6 +157,10 @@ public:
{
return uart_write(_uart, (const char*)buffer, size);
}
size_t write(const char *buffer)
{
return buffer? uart_write(_uart, buffer, strlen(buffer)): 0;
}
operator bool() const
{
return _uart != 0;