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;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@
|
|||
* - Fixed AVRISP-MKII clone project not correctly issuing LOAD EXTENDED ADDRESS commands when the extended address
|
||||
* boundary is crossed during programming or readback (thanks to Gerard Sexton)
|
||||
* - Fixed warnings when building the AVRISP-MKII clone project with the ENABLE_XPROG_PROTOCOL compile time option disabled
|
||||
* - 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.
|
||||
*
|
||||
* \section Sec_ChangeLog100512 Version 100512
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue