From 55cf0e1003a3a53b8f9948a4aa95275687b46ab4 Mon Sep 17 00:00:00 2001 From: David Madison Date: Sat, 9 Mar 2019 15:52:15 -0500 Subject: Switch 'available' return type to uint8_t This function never returns an error (-1), and the number of bytes available will never be a negative number. --- cores/arduino/xinput/USB_XInput_API.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores/arduino/xinput/USB_XInput_API.cpp') diff --git a/cores/arduino/xinput/USB_XInput_API.cpp b/cores/arduino/xinput/USB_XInput_API.cpp index 678692d..ffd818c 100644 --- a/cores/arduino/xinput/USB_XInput_API.cpp +++ b/cores/arduino/xinput/USB_XInput_API.cpp @@ -34,7 +34,7 @@ boolean XInputUSB::connected() { return USBDevice.configured(); } -int XInputUSB::available() { +uint8_t XInputUSB::available() { return USB_Available(XINPUT_RX_ENDPOINT); } -- cgit v1.2.3-18-g5258