summaryrefslogtreecommitdiffstats
path: root/keyboards/aidansmithdotdev/fine40/fine40.c
diff options
context:
space:
mode:
authorAidan Smith <LeoneShamoth@gmail.com>2023-03-07 16:06:00 -0500
committerGitHub <noreply@github.com>2023-03-07 14:06:00 -0700
commit31ab01dce077d1788974505a4781f1cbdb3a6e5d (patch)
tree51bba65c6cabb31467776bc385868f153452ca7b /keyboards/aidansmithdotdev/fine40/fine40.c
parent8b7878ef8d44d4feec34700ce1182a34283a5c56 (diff)
Change aidansmithdotdev/fine40 to use Encoder Map (#19912)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: jack <0x6a73@protonmail.com>
Diffstat (limited to 'keyboards/aidansmithdotdev/fine40/fine40.c')
-rw-r--r--keyboards/aidansmithdotdev/fine40/fine40.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/keyboards/aidansmithdotdev/fine40/fine40.c b/keyboards/aidansmithdotdev/fine40/fine40.c
index 73c453b6c0..0bd190321a 100644
--- a/keyboards/aidansmithdotdev/fine40/fine40.c
+++ b/keyboards/aidansmithdotdev/fine40/fine40.c
@@ -71,15 +71,15 @@ bool oled_task_kb(void) {
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
- if (!encoder_update_user(index, clockwise)) {
- return false;
- }
- // Volume control
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
- return false;
+ if (!encoder_update_user(index, clockwise)) {
+ return false;
+ }
+ // Volume control
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+ return true;
}
#endif \ No newline at end of file