aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cores/arduino/xinput/USB_XInput_API.cpp2
-rw-r--r--cores/arduino/xinput/USB_XInput_API.h6
2 files changed, 4 insertions, 4 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);
}
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