From 39ffce948a7069db390f07c43506ebbe8421962e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 28 Feb 2013 15:29:05 +0000 Subject: Fixed incorrect output in the HIDReportViewer project when no device is connected (thanks to Pavel Kuzmin). --- Projects/HIDReportViewer/HIDReportViewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Projects') diff --git a/Projects/HIDReportViewer/HIDReportViewer.c b/Projects/HIDReportViewer/HIDReportViewer.c index aa4c3e598..2250ddfe4 100644 --- a/Projects/HIDReportViewer/HIDReportViewer.c +++ b/Projects/HIDReportViewer/HIDReportViewer.c @@ -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); -- cgit v1.2.3