aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/HIDReportViewer
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-02-28 15:29:05 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-02-28 15:29:05 +0000
commit39ffce948a7069db390f07c43506ebbe8421962e (patch)
tree4ae6e4fd62a3bf8a1b6ada25e8f1159a62e5b25c /Projects/HIDReportViewer
parent280fc85d1bcdd453e88de468e3e520dc677fd702 (diff)
downloadlufa-39ffce948a7069db390f07c43506ebbe8421962e.tar.gz
lufa-39ffce948a7069db390f07c43506ebbe8421962e.tar.bz2
lufa-39ffce948a7069db390f07c43506ebbe8421962e.zip
Fixed incorrect output in the HIDReportViewer project when no device is connected (thanks to Pavel Kuzmin).
Diffstat (limited to 'Projects/HIDReportViewer')
-rw-r--r--Projects/HIDReportViewer/HIDReportViewer.c2
1 files changed, 1 insertions, 1 deletions
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);