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 /users/greatwizard | |
| 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 'users/greatwizard')
| -rw-r--r-- | users/greatwizard/greatwizard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/users/greatwizard/greatwizard.c b/users/greatwizard/greatwizard.c index 46ee41436..3ec856d72 100644 --- a/users/greatwizard/greatwizard.c +++ b/users/greatwizard/greatwizard.c | |||
| @@ -70,7 +70,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | #ifdef ENCODER_ENABLE | 72 | #ifdef ENCODER_ENABLE |
| 73 | void encoder_update_user(uint8_t index, bool clockwise) { | 73 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 74 | switch (get_highest_layer(layer_state)) { | 74 | switch (get_highest_layer(layer_state)) { |
| 75 | case _QWERTY: | 75 | case _QWERTY: |
| 76 | #ifdef LAYERS_PROGRAMMER | 76 | #ifdef LAYERS_PROGRAMMER |
| @@ -90,6 +90,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 90 | } | 90 | } |
| 91 | break; | 91 | break; |
| 92 | } | 92 | } |
| 93 | return true; | ||
| 93 | } | 94 | } |
| 94 | #endif | 95 | #endif |
| 95 | 96 | ||
