projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename PDIProtocol.c/.h to XPROGProtocol.c/.h as it will now handle both TPI and...
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
MouseHost
/
MouseHost.c
diff --git
a/Demos/Host/LowLevel/MouseHost/MouseHost.c
b/Demos/Host/LowLevel/MouseHost/MouseHost.c
index
f6a2f38
..
b003831
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/MouseHost.c
+++ b/
Demos/Host/LowLevel/MouseHost/MouseHost.c
@@
-37,7
+37,7
@@
#include "MouseHost.h"
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then
\r
#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
*/
\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
/* 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
/* Refreeze HID data IN pipe */
\r
Pipe_Freeze();
\r
\r