Fixed incorrect output in the HIDReportViewer project when no device is connected (thanks to Pavel Kuzmin).
This commit is contained in:
1 parent
280fc85d1b
commit
39ffce948a
2 files changed
+2
-1
No files matched your search
@@ -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