1
0
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:
Martino Facchin 2015-09-04 10:03:40 +02:00
parent 2acda414aa
commit a5ad4744b5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;