/* Processes a given Keyboard LED report from the host, and sets the board LEDs to match. Since the Keyboard LED report can be sent through either the control endpoint (via a HID SetReport request) or the HID OUT endpoint, the processing code is placed here to avoid duplicating it and potentially having different behavior depending on the method used to sent it.  */
void Keyboard_ProcessLEDReport(const uint8_t LEDStatus)
/* Processes a given Keyboard LED report from the host, and sets the board LEDs to match. Since the Keyboard LED report can be sent through either the control endpoint (via a HID SetReport request) or the HID OUT endpoint, the processing code is placed here to avoid duplicating it and potentially having different behavior depending on the method used to sent it.  */
void Keyboard_ProcessLEDReport(const uint8_t LEDStatus)
{
	uint8_t LEDMask = LEDS_LED2;
	if (LEDStatus & HID_KEYBOARD_LED_NUMLOCK)
	  LEDMask |= LEDS_LED1;
	if (LEDStatus & HID_KEYBOARD_LED_CAPSLOCK)
	  LEDMask |= LEDS_LED3;
	if (LEDStatus & HID_KEYBOARD_LED_SCROLLLOCK)
	  LEDMask |= LEDS_LED4;
	LEDs_SetAllLEDs(LEDMask);
}