Skip to content

Commit

Permalink
restore HardwareSerial::write(str) (esp8266#4564)
Browse files Browse the repository at this point in the history
* restore HardwareSerial::write(str)

* restore HardwareSerial::write(str) (this time checked)
  • Loading branch information
d-a-v authored and devyte committed Mar 26, 2018
1 parent 2105b8b commit ee1ef4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cores/esp8266/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ class HardwareSerial: public Stream
{
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;
Expand Down

0 comments on commit ee1ef4a

Please sign in to comment.