Added new ENDPOINT_*_BusSuspended error code to the Endpoint function, so that the...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / Endpoint.c
index 81fef1c..5560c80 100644 (file)
@@ -120,6 +120,8 @@ uint8_t Endpoint_WaitUntilReady(void)
                \r
                if (USB_DeviceState == DEVICE_STATE_Unattached)\r
                  return ENDPOINT_READYWAIT_DeviceDisconnected;\r
+               else if (USB_DeviceState == DEVICE_STATE_Suspended)\r
+                 return ENDPOINT_READYWAIT_BusSuspended;\r
                else if (Endpoint_IsStalled())\r
                  return ENDPOINT_READYWAIT_EndpointStalled;\r
                          \r