aboutsummaryrefslogtreecommitdiffstats
path: root/Demos
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-01-03 10:53:47 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-01-03 10:53:47 +0000
commit2608fd1dd48096c1867676de337767ff3fb1a951 (patch)
treecca01486688aaa7dfa9426a0afdf23f0834f5c87 /Demos
parent7d037c7db812be4dac1a742c990f3631fbd82cb5 (diff)
downloadlufa-2608fd1dd48096c1867676de337767ff3fb1a951.tar.gz
lufa-2608fd1dd48096c1867676de337767ff3fb1a951.tar.bz2
lufa-2608fd1dd48096c1867676de337767ff3fb1a951.zip
Fixed hardware race condition that could cause failed device enumerations for AVR8 and UC3 architectures (thanks to Mike Beyhs).
Fixed incorrect Minimus board LED definitions (thanks to Joonas Lahtinen). Fixed incorrect LED masks for received data display in the Device GenericHID demos (thanks to Denys Berkovskyy).
Diffstat (limited to 'Demos')
-rw-r--r--Demos/Device/ClassDriver/GenericHID/GenericHID.c6
-rw-r--r--Demos/Device/LowLevel/GenericHID/GenericHID.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/Demos/Device/ClassDriver/GenericHID/GenericHID.c b/Demos/Device/ClassDriver/GenericHID/GenericHID.c
index 3a050bbd9..f9222f45a 100644
--- 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;
+ NewLEDMask |= LEDS_LED2;
if (Data[2])
- NewLEDMask |= LEDS_LED1;
+ NewLEDMask |= LEDS_LED3;
if (Data[3])
- NewLEDMask |= LEDS_LED1;
+ NewLEDMask |= LEDS_LED4;
LEDs_SetAllLEDs(NewLEDMask);
}
diff --git a/Demos/Device/LowLevel/GenericHID/GenericHID.c b/Demos/Device/LowLevel/GenericHID/GenericHID.c
index e74daff01..beaad0318 100644
--- a/Demos/Device/LowLevel/GenericHID/GenericHID.c
+++ b/Demos/Device/LowLevel/GenericHID/GenericHID.c
@@ -161,13 +161,13 @@ void ProcessGenericHIDReport(uint8_t* DataArray)
NewLEDMask |= LEDS_LED1;
if (DataArray[1])
- NewLEDMask |= LEDS_LED1;
+ NewLEDMask |= LEDS_LED2;
if (DataArray[2])
- NewLEDMask |= LEDS_LED1;
+ NewLEDMask |= LEDS_LED3;
if (DataArray[3])
- NewLEDMask |= LEDS_LED1;
+ NewLEDMask |= LEDS_LED4;
LEDs_SetAllLEDs(NewLEDMask);
}