Allow to set LEDs using the KDBLEDS struct

This commit is contained in:
Kristian Sloth Lauszus 2015-11-18 00:23:21 +01:00
parent 4266a5c388
commit 9a51211a35

View file

@ -73,11 +73,16 @@ public:
protocolMode = mode;
};
/**@{*/
/**
* Used to set the leds on a keyboard.
* @param data See KBDLEDS in hidboot.h
* @param data See ::KBDLEDS in hidboot.h
*/
void setLeds(struct KBDLEDS data) {
setLeds(*((uint8_t*)&data));
};
void setLeds(uint8_t data);
/**@}*/
/** True if a device is connected */
bool connected;