aboutsummaryrefslogtreecommitdiff
path: root/keyboards/program_yoink/program_yoink.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/program_yoink/program_yoink.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/program_yoink/program_yoink.c')
-rw-r--r--keyboards/program_yoink/program_yoink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/program_yoink/program_yoink.c b/keyboards/program_yoink/program_yoink.c
index a974d7f6f..7733aa2ad 100644
--- a/keyboards/program_yoink/program_yoink.c
+++ b/keyboards/program_yoink/program_yoink.c
@@ -16,8 +16,8 @@
16 16
17#include "program_yoink.h" 17#include "program_yoink.h"
18 18
19__attribute__ ((weak)) 19bool encoder_update_kb(uint8_t index, bool clockwise) {
20void encoder_update_user(uint8_t index, bool clockwise) { 20 if (!encoder_update_user(index, clockwise)) return false;
21 if (index == 0) { 21 if (index == 0) {
22 if (clockwise) { 22 if (clockwise) {
23 tap_code(KC_VOLU); 23 tap_code(KC_VOLU);
@@ -25,4 +25,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
25 tap_code(KC_VOLD); 25 tap_code(KC_VOLD);
26 } 26 }
27 } 27 }
28 return true;
28} 29}