From 56cd8f63f0454adc8b770c486c460ca95c16ba1c Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Wed, 16 Nov 2016 17:30:13 +0200 Subject: [PATCH] Add HardwareSerial::write(const char *) fixes: https://github.com/espressif/arduino-esp32/issues/55 --- cores/esp32/HardwareSerial.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cores/esp32/HardwareSerial.h b/cores/esp32/HardwareSerial.h index 122b910c..64a4d484 100644 --- a/cores/esp32/HardwareSerial.h +++ b/cores/esp32/HardwareSerial.h @@ -46,6 +46,10 @@ public: size_t write(uint8_t); 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) { return write((uint8_t) n);