LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
\r
/* Wait until USB device disconnected */\r
- while (USB_IsConnected);\r
+ USB_HostState = HOST_STATE_WaitForDeviceRemoval;\r
break;\r
}\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
\r
/* Wait until USB device disconnected */\r
- while (USB_IsConnected);\r
+ USB_HostState = HOST_STATE_WaitForDeviceRemoval;\r
break;\r
}\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
\r
/* Wait until USB device disconnected */\r
- while (USB_IsConnected);\r
+ USB_HostState = HOST_STATE_WaitForDeviceRemoval;\r
break; \r
}\r
\r
/** Processes a read HID report from an attached mouse, extracting out elements via the HID parser results\r
* as required and displays movement and button presses on the board LEDs.\r
*\r
- * \param MouseReport Pointer to a HID report from an attached mouse device\r
+ * \param[in] MouseReport Pointer to a HID report from an attached mouse device\r
*/\r
void ProcessMouseReport(uint8_t* MouseReport)\r
{\r