diff options
author | David Madison <dmadison@users.noreply.github.com> | 2019-03-09 15:52:15 -0500 |
---|---|---|
committer | David Madison <dmadison@users.noreply.github.com> | 2019-03-09 15:52:15 -0500 |
commit | 55cf0e1003a3a53b8f9948a4aa95275687b46ab4 (patch) | |
tree | c00c8ebca68ebfd0297248fa6a1ae97d39f0e797 /cores/arduino/xinput/USB_XInput_API.cpp | |
parent | 971b3bb74113fc1bcd52122ba167849bded8ad99 (diff) |
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.
Diffstat (limited to 'cores/arduino/xinput/USB_XInput_API.cpp')
-rw-r--r-- | cores/arduino/xinput/USB_XInput_API.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |