From 0d592609cef7317e0f54364481e8413b2ca1dad0 Mon Sep 17 00:00:00 2001 From: Spegs21 Date: Wed, 3 Mar 2021 11:16:43 -0500 Subject: [PATCH] Support for readbytes with a byte/uint8_t buffer --- cores/arduino/USB/USBAPI.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/arduino/USB/USBAPI.h b/cores/arduino/USB/USBAPI.h index c5cec6257..0cf381e1c 100644 --- a/cores/arduino/USB/USBAPI.h +++ b/cores/arduino/USB/USBAPI.h @@ -120,6 +120,7 @@ class Serial_ : public Stream, public arduino::PluggableUSBModule operator bool(); size_t readBytes(char *buffer, size_t length); + size_t readBytes( uint8_t *buffer, size_t length) { return readBytes((char *)buffer, length); } // This method allows processing "SEND_BREAK" requests sent by // the USB host. Those requests indicate that the host wants to