diff options
author | kb-elmo <lorwel@mailbox.org> | 2021-09-05 18:05:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-05 09:05:55 -0700 |
commit | 0471429c018b85ebbccfe8c823621235c99458b2 (patch) | |
tree | ad5dbf136d71370377df0511e64060dc99fbc1d5 /keyboards/owlab/voice65/hotswap/hotswap.c | |
parent | 014aa0661e2d9cf5b67334f82869d4a841cc703f (diff) |
[Keyboard] Fix rotary encoder function for Voice65 (#14316)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/owlab/voice65/hotswap/hotswap.c')
-rw-r--r-- | keyboards/owlab/voice65/hotswap/hotswap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/keyboards/owlab/voice65/hotswap/hotswap.c b/keyboards/owlab/voice65/hotswap/hotswap.c index 343daafeb2..ca5ce7bb8b 100644 --- a/keyboards/owlab/voice65/hotswap/hotswap.c +++ b/keyboards/owlab/voice65/hotswap/hotswap.c @@ -123,9 +123,9 @@ void rgb_matrix_indicators_user(void) } enum encoder_modes{ - ENCODER_MODE_ONE = 0, + ENCODER_MODE_ONE, ENCODER_MODE_TWO, - ENCODER_MODE_THREE, + ENCODER_MODE_THREE }; keyboard_config_t keyboard_config; @@ -260,7 +260,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { break; case KC_F22: //change encoder mode upward - if(!encoder_direction_start){ if(keyboard_config.encoder_mode_index < ENCODER_MODE_THREE){ keyboard_config.encoder_mode_index++; @@ -271,7 +270,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { set_encoder_mode(keyboard_config.encoder_mode_index); } return false; - case KC_F23: if(!encoder_direction_start){ if(keyboard_config.encoder_mode_index > ENCODER_MODE_ONE){ |