From c20a94a4e84c89debf5e7109482ede708a694a0c Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 23 Apr 2009 13:28:12 +0000 Subject: Fixed USB_RemoteWakeupEnabled flag never being set (the REMOTE WAKEUP Set Feature request was not being handled). Renamed the FEATURELESS_CONTROL_ONLY_DEVICE compile-time token to CONTROL_ONLY_DEVICE. --- Demos/Device/Mouse/Mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Demos/Device/Mouse') diff --git a/Demos/Device/Mouse/Mouse.c b/Demos/Device/Mouse/Mouse.c index 2e5f05b42..669b576a6 100644 --- a/Demos/Device/Mouse/Mouse.c +++ b/Demos/Device/Mouse/Mouse.c @@ -190,10 +190,10 @@ EVENT_HANDLER(USB_UnhandledControlPacket) { USB_MouseReport_Data_t MouseReportData; + Endpoint_ClearSETUP(); + /* Create the next mouse report for transmission to the host */ CreateMouseReport(&MouseReportData); - - Endpoint_ClearSETUP(); /* Write the report data to the control endpoint */ Endpoint_Write_Control_Stream_LE(&MouseReportData, sizeof(MouseReportData)); -- cgit v1.2.3