Fixed incorrect USB device state set when a suspended LUFA device is woken while...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / XMEGA / USBInterrupt_XMEGA.c
index b85f301..209bf94 100644 (file)
@@ -77,7 +77,7 @@ ISR(USB_BUSEVENT_vect)
                if (USB_Device_ConfigurationNumber)
                  USB_DeviceState = DEVICE_STATE_Configured;
                else
-                 USB_DeviceState = (USB_Device_IsAddressSet()) ? DEVICE_STATE_Configured : DEVICE_STATE_Powered;
+                 USB_DeviceState = (USB_Device_IsAddressSet()) ? DEVICE_STATE_Addressed : DEVICE_STATE_Powered;
 
                #if !defined(NO_LIMITED_CONTROLLER_CONNECT)
                EVENT_USB_Device_Connect();