Remove serial driver use from the AVRISP project now that it is no longer needed.
[pub/USBasp.git] / Demos / Host / LowLevel / MouseHost / MouseHost.c
index f6a2f38..b003831 100644 (file)
@@ -37,7 +37,7 @@
 #include "MouseHost.h"\r
 \r
 /** Main program entry point. This routine configures the hardware required by the application, then\r
- *  starts the scheduler to run the application tasks.\r
+ *  enters a loop to run the application tasks in sequence.\r
  */\r
 int main(void)\r
 {\r
@@ -138,6 +138,9 @@ void ReadNextReport(void)
        /* Check to see if a packet has been received */\r
        if (!(Pipe_IsINReceived()))\r
        {\r
+               /* No packet received (no movement), turn off LEDs */\r
+               LEDs_SetAllLEDs(LEDS_NO_LEDS);\r
+       \r
                /* Refreeze HID data IN pipe */\r
                Pipe_Freeze();\r
                        \r