From 6693dec7cb721ea21ae2fb2714518de41004c878 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 30 Aug 2018 16:26:06 +0700 Subject: [PATCH] fix Serial build errors --- cores/nRF5/usb/USBSerial.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cores/nRF5/usb/USBSerial.h b/cores/nRF5/usb/USBSerial.h index a4bd5fad..649a1380 100644 --- a/cores/nRF5/usb/USBSerial.h +++ b/cores/nRF5/usb/USBSerial.h @@ -46,6 +46,7 @@ class USBSerial : public Stream public: USBSerial(void); + void setPins(uint8_t pin_rx, uint8_t pin_tx) { (void) pin_rx; (void) pin_tx; } void begin(uint32_t baud_count); void begin(uint32_t baud, uint8_t config); void end(void); @@ -60,6 +61,9 @@ public: operator bool(); size_t readBytes(char *buffer, size_t length); + size_t readBytes(uint8_t *buffer, size_t length) { return readBytes((char *)buffer, length); } + + bool started(void) { return true; } };