Fixed incorrect output in the HIDReportViewer project when no device is connected (thanks to Pavel Kuzmin).

This commit is contained in:
Dean Camera 2013-02-28 15:29:05 +00:00
parent 280fc85d1b
commit 39ffce948a
2 changed files with 2 additions and 1 deletions

View file

@ -89,7 +89,7 @@ int main(void)
*/
void RetrieveDeviceData(void)
{
if (USB_CurrentMode != USB_MODE_Host)
if (USB_HostState != HOST_STATE_Configured)
return;
LEDs_SetAllLEDs(LEDMASK_USB_BUSY);