mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
fix OUT endpoints
was using only lower 8 bits of configuration registers
This commit is contained in:
parent
2acda414aa
commit
a5ad4744b5
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user