Add HardwareSerial::write(const char *)
fixes: https://github.com/espressif/arduino-esp32/issues/55
This commit is contained in:
parent
47babd2098
commit
56cd8f63f0
@ -46,6 +46,10 @@ public:
|
|||||||
size_t write(uint8_t);
|
size_t write(uint8_t);
|
||||||
size_t write(const uint8_t *buffer, size_t size);
|
size_t write(const uint8_t *buffer, size_t size);
|
||||||
|
|
||||||
|
inline size_t write(const char * s)
|
||||||
|
{
|
||||||
|
return write((uint8_t*) s, strlen(s));
|
||||||
|
}
|
||||||
inline size_t write(unsigned long n)
|
inline size_t write(unsigned long n)
|
||||||
{
|
{
|
||||||
return write((uint8_t) n);
|
return write((uint8_t) n);
|
||||||
|
Loading…
Reference in New Issue
Block a user