diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-23 08:00:12 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-23 08:00:12 +0000 |
commit | 5dbfdaa17dc4cb35783ec121453c7dfaca9874f3 (patch) | |
tree | e03f9d794664c1042e30406f37e4b244ce1bf1b5 /LUFA/Drivers/USB | |
parent | 7a5d045987f1d42b73a4291a9cd7ac25dc3b8c1a (diff) | |
download | lufa-5dbfdaa17dc4cb35783ec121453c7dfaca9874f3.tar.gz lufa-5dbfdaa17dc4cb35783ec121453c7dfaca9874f3.tar.bz2 lufa-5dbfdaa17dc4cb35783ec121453c7dfaca9874f3.zip |
Ensure that the USB_DeviceState variable is properly set upon wakeup events, to the Addressed or Configured state as needed.
Add explicit support for the AT90USB646 to the Teensy bootloader now that PJRC have released the Teensy++ board.
Ensure unfinished SideShow demo uses an unallocated PID value within the LUFA range.
Diffstat (limited to 'LUFA/Drivers/USB')
-rw-r--r-- | LUFA/Drivers/USB/HighLevel/USBInterrupt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/HighLevel/USBInterrupt.c b/LUFA/Drivers/USB/HighLevel/USBInterrupt.c index 5edefa996..20545a40e 100644 --- a/LUFA/Drivers/USB/HighLevel/USBInterrupt.c +++ b/LUFA/Drivers/USB/HighLevel/USBInterrupt.c @@ -143,7 +143,7 @@ ISR(USB_GEN_vect, ISR_BLOCK) USB_DeviceState = DEVICE_STATE_Powered;
EVENT_USB_Connect();
#else
- USB_DeviceState = DEVICE_STATE_Configured;
+ USB_DeviceState = (USB_ConfigurationNumber) ? DEVICE_STATE_Configured : DEVICE_STATE_Addressed;
EVENT_USB_WakeUp();
#endif
}
|