Skip to content

Commit a5ad474

Browse files
committed
fix OUT endpoints
was using only lower 8 bits of configuration registers
1 parent 2acda41 commit a5ad474

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: hardware/arduino/sam/cores/arduino/USB/PluggableUSB.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef struct __attribute__((packed))
3232
int (*getDescriptor)(int8_t t);
3333
int8_t numEndpoints;
3434
int8_t numInterfaces;
35-
uint8_t *endpointType;
35+
uint32_t *endpointType;
3636
} PUSBCallbacks;
3737

3838
typedef struct

Diff for: hardware/arduino/sam/libraries/HID/HID.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ bool HID_Setup(USBSetup& setup, uint8_t i)
144144

145145
HID_::HID_(void)
146146
{
147-
static uint8_t endpointType[1];
147+
static uint32_t endpointType[1];
148148

149149
endpointType[0] = EP_TYPE_INTERRUPT_IN;
150150

0 commit comments

Comments
 (0)