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:
parent
2105b8b06f
commit
ee1ef4a795
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user