From 9a51211a3510319ff4b5568ae743a5655507478c Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Wed, 18 Nov 2015 00:23:21 +0100 Subject: [PATCH] Allow to set LEDs using the KDBLEDS struct --- BTHID.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BTHID.h b/BTHID.h index 1a7d8687..07ece32c 100644 --- a/BTHID.h +++ b/BTHID.h @@ -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;