aboutsummaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/eshesh2/keymap.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-05-21 23:17:32 -0700
committerGitHub <noreply@github.com>2021-05-21 23:17:32 -0700
commita0fed0ea176d1c986e40fc4981b900509c90d66e (patch)
treeee12f5943046015ea0dce8e2a30a68bc8eb99dbe /keyboards/planck/keymaps/eshesh2/keymap.c
parent76c23b15abc824f867b48d8d5100dced2417d336 (diff)
downloadqmk_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/planck/keymaps/eshesh2/keymap.c')
-rw-r--r--keyboards/planck/keymaps/eshesh2/keymap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/keyboards/planck/keymaps/eshesh2/keymap.c b/keyboards/planck/keymaps/eshesh2/keymap.c
index 1872b42cd..59768e15a 100644
--- a/keyboards/planck/keymaps/eshesh2/keymap.c
+++ b/keyboards/planck/keymaps/eshesh2/keymap.c
@@ -187,7 +187,7 @@ uint16_t muse_counter = 0;
187uint8_t muse_offset = 70; 187uint8_t muse_offset = 70;
188uint16_t muse_tempo = 50; 188uint16_t muse_tempo = 50;
189 189
190void encoder_update(bool clockwise) { 190bool encoder_update(bool clockwise) {
191 if (muse_mode) { 191 if (muse_mode) {
192 if (IS_LAYER_ON(_RAISE)) { 192 if (IS_LAYER_ON(_RAISE)) {
193 if (clockwise) { 193 if (clockwise) {
@@ -226,6 +226,7 @@ void encoder_update(bool clockwise) {
226 } 226 }
227 } 227 }
228 } 228 }
229 return true;
229} 230}
230 231
231 232