From 56298ff94dc0945e355d4c466266b80d12527720 Mon Sep 17 00:00:00 2001 From: jack <0x6A73@pm.me> Date: Sun, 2 Apr 2023 18:00:27 -0600 Subject: [PATCH] fix lint errors lint? lint. --- quantum/encoder.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/quantum/encoder.c b/quantum/encoder.c index 06c4f10e0656..8760ebf981df 100644 --- a/quantum/encoder.c +++ b/quantum/encoder.c @@ -79,20 +79,19 @@ __attribute__((weak)) bool encoder_update_user(uint8_t index, bool clockwise) { __attribute__((weak)) bool encoder_update_kb(uint8_t index, bool clockwise) { bool res = encoder_update_user(index, clockwise); if (res) { - if (clockwise) { + if (clockwise) { #ifdef EXTRAKEY_ENABLE - tap_code_delay(KC_VOLU, 10); + tap_code_delay(KC_VOLU, 10); #else - tap_code_delay(KC_PGDN, 10); + tap_code_delay(KC_PGDN, 10); #endif - } else { + } else { #ifdef EXTRAKEY_ENABLE - tap_code_delay(KC_VOLD, 10); + tap_code_delay(KC_VOLD, 10); #else - tap_code_delay(KC_PGUP, 10); + tap_code_delay(KC_PGUP, 10); #endif - - } + } } return res; } @@ -108,7 +107,7 @@ void encoder_init(void) { thisCount = isLeftHand ? NUM_ENCODERS_LEFT : NUM_ENCODERS_RIGHT; thatCount = isLeftHand ? NUM_ENCODERS_RIGHT : NUM_ENCODERS_LEFT; #else // SPLIT_KEYBOARD - thisCount = NUM_ENCODERS; + thisCount = NUM_ENCODERS; #endif #ifdef ENCODER_TESTS