Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
lint?

lint.
  • Loading branch information
waffle87 committed Apr 3, 2023
1 parent c56a05e commit 56298ff
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions quantum/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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
Expand Down

0 comments on commit 56298ff

Please sign in to comment.