Remove incorrect check for the current device state in the Set Configuration request handler of DevChapter9, which broke Set Configuration requests to the device under most circumstances.
Move out the SPI prescaler list to a PROGMEM module-level variable in ISPTarget.c.
This commit is contained in:
parent
571159df1b
commit
34047efc7e
4 changed files with 28 additions and 27 deletions
|
@ -145,9 +145,6 @@ static void USB_Device_SetAddress(void)
|
|||
|
||||
static void USB_Device_SetConfiguration(void)
|
||||
{
|
||||
if (USB_DeviceState != DEVICE_STATE_Addressed)
|
||||
return;
|
||||
|
||||
#if defined(FIXED_NUM_CONFIGURATIONS)
|
||||
if ((uint8_t)USB_ControlRequest.wValue > FIXED_NUM_CONFIGURATIONS)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue