Fixed incorrect USB device state set when a suspended LUFA device is woken while...
[pub/lufa.git] / LUFA / Drivers / USB / Core / UC3 / USBInterrupt_UC3.c
index 0d0e860..6690e82 100644 (file)
@@ -103,7 +103,7 @@ ISR(USB_GEN_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;
 
                EVENT_USB_Device_WakeUp();
        }