Fixed incorrect output in the HIDReportViewer project when no device is connected (thanks to Pavel Kuzmin).
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user