X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/c830fcb0e1d42c1300ebe78a8b33924054b63a87..18b0d408a9e68cbc1ce36da89d74a799d7fc31de:/Demos/Host/LowLevel/MouseHost/MouseHost.c diff --git a/Demos/Host/LowLevel/MouseHost/MouseHost.c b/Demos/Host/LowLevel/MouseHost/MouseHost.c index f6a2f3820..b00383113 100644 --- a/Demos/Host/LowLevel/MouseHost/MouseHost.c +++ b/Demos/Host/LowLevel/MouseHost/MouseHost.c @@ -37,7 +37,7 @@ #include "MouseHost.h" /** Main program entry point. This routine configures the hardware required by the application, then - * starts the scheduler to run the application tasks. + * enters a loop to run the application tasks in sequence. */ int main(void) { @@ -138,6 +138,9 @@ void ReadNextReport(void) /* Check to see if a packet has been received */ if (!(Pipe_IsINReceived())) { + /* No packet received (no movement), turn off LEDs */ + LEDs_SetAllLEDs(LEDS_NO_LEDS); + /* Refreeze HID data IN pipe */ Pipe_Freeze();