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.h | |
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.h')
-rw-r--r-- | cores/arduino/xinput/USB_XInput_API.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cores/arduino/xinput/USB_XInput_API.h b/cores/arduino/xinput/USB_XInput_API.h index 9f2e686..11fa100 100644 --- a/cores/arduino/xinput/USB_XInput_API.h +++ b/cores/arduino/xinput/USB_XInput_API.h @@ -37,9 +37,9 @@ class XInputUSB { public: // API static bool connected(void); - static int available(void); - static int send(const void *buffer, uint8_t nbytes); - static int recv(void *buffer, uint8_t nbytes); + static uint8_t available(void); + static int send(const void *buffer, uint8_t nbytes); + static int recv(void *buffer, uint8_t nbytes); static void setRecvCallback(void(*callback)(void)); // Non-API Data |