diff --git a/hardware/arduino/sam/cores/arduino/USB/PluggableUSB.h b/hardware/arduino/sam/cores/arduino/USB/PluggableUSB.h index 205900550..502da9ebc 100644 --- a/hardware/arduino/sam/cores/arduino/USB/PluggableUSB.h +++ b/hardware/arduino/sam/cores/arduino/USB/PluggableUSB.h @@ -32,7 +32,7 @@ typedef struct __attribute__((packed)) int (*getDescriptor)(int8_t t); int8_t numEndpoints; int8_t numInterfaces; - uint8_t *endpointType; + uint32_t *endpointType; } PUSBCallbacks; typedef struct diff --git a/hardware/arduino/sam/libraries/HID/HID.cpp b/hardware/arduino/sam/libraries/HID/HID.cpp index d704bc883..935039096 100644 --- a/hardware/arduino/sam/libraries/HID/HID.cpp +++ b/hardware/arduino/sam/libraries/HID/HID.cpp @@ -144,7 +144,7 @@ bool HID_Setup(USBSetup& setup, uint8_t i) HID_::HID_(void) { - static uint8_t endpointType[1]; + static uint32_t endpointType[1]; endpointType[0] = EP_TYPE_INTERRUPT_IN;