diff options
| author | fauxpark <fauxpark@gmail.com> | 2019-11-06 11:42:16 +1100 |
|---|---|---|
| committer | Joel Challis <git@zvecr.com> | 2019-11-06 00:42:16 +0000 |
| commit | dfb78d2a086daa2ceb3fd043afce03785abfa23a (patch) | |
| tree | 7cd724b1cd12a65025bbc9d3cb32d7dd39cb9928 /quantum/template | |
| parent | ed0575fc8aacdfdd83a31fc98df2b1cad2e977f4 (diff) | |
| download | qmk_firmware-dfb78d2a086daa2ceb3fd043afce03785abfa23a.tar.gz qmk_firmware-dfb78d2a086daa2ceb3fd043afce03785abfa23a.zip | |
New and improved lock LED callbacks (#7215)
* New and improved lock LED callbacks
* Include stdbool
* Update documentation
* Use full function signatures and add keyboard-level example
Diffstat (limited to 'quantum/template')
| -rw-r--r-- | quantum/template/base/keyboard.c | 4 | ||||
| -rw-r--r-- | quantum/template/base/keymaps/default/keymap.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/quantum/template/base/keyboard.c b/quantum/template/base/keyboard.c index 55e4fffd3..fc31c294a 100644 --- a/quantum/template/base/keyboard.c +++ b/quantum/template/base/keyboard.c | |||
| @@ -42,9 +42,9 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||
| 42 | return process_record_user(keycode, record); | 42 | return process_record_user(keycode, record); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void led_set_kb(uint8_t usb_led) { | 45 | bool led_update_kb(led_t led_state) { |
| 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here |
| 47 | 47 | ||
| 48 | led_set_user(usb_led); | 48 | return led_update_user(led_state); |
| 49 | } | 49 | } |
| 50 | */ | 50 | */ |
diff --git a/quantum/template/base/keymaps/default/keymap.c b/quantum/template/base/keymaps/default/keymap.c index 4d5bac7b2..3a68f5487 100644 --- a/quantum/template/base/keymaps/default/keymap.c +++ b/quantum/template/base/keymaps/default/keymap.c | |||
| @@ -70,7 +70,7 @@ void matrix_scan_user(void) { | |||
| 70 | 70 | ||
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | void led_set_user(uint8_t usb_led) { | 73 | bool led_update_user(led_t led_state) { |
| 74 | 74 | return true; | |
| 75 | } | 75 | } |
| 76 | */ | 76 | */ |
