From ceb68a06408ca31d41cfb57eb3cd20268c1aed15 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 17 Mar 2009 13:56:26 +0000 Subject: Corrected CDC class bootloader to fix a few bugs, changed address counter to store x2 addresses for convenience. --- Demos/Mouse/Mouse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Demos') diff --git a/Demos/Mouse/Mouse.c b/Demos/Mouse/Mouse.c index da8a4a809..f8ec0a0f5 100644 --- a/Demos/Mouse/Mouse.c +++ b/Demos/Mouse/Mouse.c @@ -113,6 +113,9 @@ EVENT_HANDLER(USB_Connect) /* Indicate USB enumerating */ UpdateStatus(Status_USBEnumerating); + + /* Default to report protocol on connect */ + UsingReportProtocol = true; } /** Event handler for the USB_Disconnect event. This indicates that the device is no longer connected to a host via @@ -141,9 +144,6 @@ EVENT_HANDLER(USB_ConfigurationChanged) /* Indicate USB connected and ready */ UpdateStatus(Status_USBReady); - /* Default to report protocol on connect */ - UsingReportProtocol = true; - /* Start running mouse reporting task */ Scheduler_SetTaskMode(USB_Mouse_Report, TASK_RUN); } -- cgit v1.2.3