diff options
author | Drashna Jaelre <drashna@live.com> | 2021-05-21 23:17:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 23:17:32 -0700 |
commit | a0fed0ea176d1c986e40fc4981b900509c90d66e (patch) | |
tree | ee12f5943046015ea0dce8e2a30a68bc8eb99dbe /keyboards/sofle/keymaps/default/keymap.c | |
parent | 76c23b15abc824f867b48d8d5100dced2417d336 (diff) | |
download | qmk_firmware-a0fed0ea176d1c986e40fc4981b900509c90d66e.tar.gz qmk_firmware-a0fed0ea176d1c986e40fc4981b900509c90d66e.zip |
Convert Encoder callbacks to be boolean functions (#12805)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Diffstat (limited to 'keyboards/sofle/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/sofle/keymaps/default/keymap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/keyboards/sofle/keymaps/default/keymap.c b/keyboards/sofle/keymaps/default/keymap.c index 38200bfb7..2360a45d4 100644 --- a/keyboards/sofle/keymaps/default/keymap.c +++ b/keyboards/sofle/keymaps/default/keymap.c | |||
@@ -373,7 +373,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
373 | 373 | ||
374 | #ifdef ENCODER_ENABLE | 374 | #ifdef ENCODER_ENABLE |
375 | 375 | ||
376 | void encoder_update_user(uint8_t index, bool clockwise) { | 376 | bool encoder_update_user(uint8_t index, bool clockwise) { |
377 | if (index == 0) { | 377 | if (index == 0) { |
378 | if (clockwise) { | 378 | if (clockwise) { |
379 | tap_code(KC_VOLU); | 379 | tap_code(KC_VOLU); |
@@ -387,6 +387,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
387 | tap_code(KC_PGUP); | 387 | tap_code(KC_PGUP); |
388 | } | 388 | } |
389 | } | 389 | } |
390 | return true; | ||
390 | } | 391 | } |
391 | 392 | ||
392 | #endif | 393 | #endif |