projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed hardware race condition that could cause failed device enumerations for AVR8...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
GenericHID
/
GenericHID.c
diff --git
a/Demos/Device/ClassDriver/GenericHID/GenericHID.c
b/Demos/Device/ClassDriver/GenericHID/GenericHID.c
index
3a050bb
..
f9222f4
100644
(file)
--- a/
Demos/Device/ClassDriver/GenericHID/GenericHID.c
+++ b/
Demos/Device/ClassDriver/GenericHID/GenericHID.c
@@
-177,13
+177,13
@@
void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t* const HIDI
NewLEDMask |= LEDS_LED1;
if (Data[1])
NewLEDMask |= LEDS_LED1;
if (Data[1])
- NewLEDMask |= LEDS_LED
1
;
+ NewLEDMask |= LEDS_LED
2
;
if (Data[2])
if (Data[2])
- NewLEDMask |= LEDS_LED
1
;
+ NewLEDMask |= LEDS_LED
3
;
if (Data[3])
if (Data[3])
- NewLEDMask |= LEDS_LED
1
;
+ NewLEDMask |= LEDS_LED
4
;
LEDs_SetAllLEDs(NewLEDMask);
}
LEDs_SetAllLEDs(NewLEDMask);
}