LightningStalker / Splatmeme-Printer

LUFA Project for the Nintendo Switch. Pretends to be a HORI Pokken Pad and prints Splatoon 2 Posts 🍋🍋
Other
61 stars 10 forks source link

Thanks it finally works! Have to change a line in LUFA but OK. I just want to know why it uses the middle size dot brush? #15

Open WesternGun opened 6 years ago

WesternGun commented 6 years ago

First I saw the previous declaration of 'CALLBACK_USB_GetDescriptor was here error. It is because in LUFA, LUFA\Drivers\USB\Core\Device.h, line 133, has a definition of:

uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
                                            const uint8_t wIndex,
                                            const void** const DescriptorAddress

And in our code, in Descriptor.h, we have:

uint16_t CALLBACK_USB_GetDescriptor(
    const uint16_t wValue,
    const uint16_t wIndex,
    const void** const DescriptorAddress
)

wIndex has different type. Change that and all will be OK and compilation is good.