diff options
Diffstat (limited to 'tmk_core/common/host.c')
-rw-r--r-- | tmk_core/common/host.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/common/host.c b/tmk_core/common/host.c index ce39760a5..713b0d945 100644 --- a/tmk_core/common/host.c +++ b/tmk_core/common/host.c | |||
@@ -39,6 +39,12 @@ uint8_t host_keyboard_leds(void) { | |||
39 | if (!driver) return 0; | 39 | if (!driver) return 0; |
40 | return (*driver->keyboard_leds)(); | 40 | return (*driver->keyboard_leds)(); |
41 | } | 41 | } |
42 | |||
43 | led_t host_keyboard_led_state(void) { | ||
44 | if (!driver) return (led_t) {0}; | ||
45 | return (led_t)((*driver->keyboard_leds)()); | ||
46 | } | ||
47 | |||
42 | /* send report */ | 48 | /* send report */ |
43 | void host_keyboard_send(report_keyboard_t *report) { | 49 | void host_keyboard_send(report_keyboard_t *report) { |
44 | if (!driver) return; | 50 | if (!driver) return; |