X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/d0ac8e46f958e81f78876740202ca489569f5689..d4b45e8502a27c0f5ad3e26eabd2b30e84c20bac:/Demos/Device/LowLevel/GenericHID/GenericHID.c diff --git a/Demos/Device/LowLevel/GenericHID/GenericHID.c b/Demos/Device/LowLevel/GenericHID/GenericHID.c index 69c417655..4d61acfb6 100644 --- a/Demos/Device/LowLevel/GenericHID/GenericHID.c +++ b/Demos/Device/LowLevel/GenericHID/GenericHID.c @@ -1,13 +1,13 @@ /* LUFA Library - Copyright (C) Dean Camera, 2011. + Copyright (C) Dean Camera, 2012. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* - Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@ -157,7 +157,7 @@ void ProcessGenericHIDReport(uint8_t* DataArray) holding the report sent from the host. */ - uint8_t NewLEDMask = LEDS_NO_LEDS; + uint8_t NewLEDMask = LEDS_NO_LEDS; if (DataArray[0]) NewLEDMask |= LEDS_LED1; @@ -170,7 +170,7 @@ void ProcessGenericHIDReport(uint8_t* DataArray) if (DataArray[3]) NewLEDMask |= LEDS_LED1; - + LEDs_SetAllLEDs(NewLEDMask); } @@ -187,7 +187,7 @@ void CreateGenericHIDReport(uint8_t* DataArray) */ uint8_t CurrLEDMask = LEDs_GetLEDs(); - + DataArray[0] = ((CurrLEDMask & LEDS_LED1) ? 1 : 0); DataArray[1] = ((CurrLEDMask & LEDS_LED2) ? 1 : 0); DataArray[2] = ((CurrLEDMask & LEDS_LED3) ? 1 : 0);