Browse Source

[Keyboard] fix encoder_update_user for nullbitsco/nibble (#13451)

David Luo 3 years ago
parent
commit
03a9baa44f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c

+ 2 - 1
keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c

@@ -81,7 +81,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 }
 }
 
 
 
 
-void encoder_update_user(uint8_t index, bool clockwise) {
+bool encoder_update_user(uint8_t index, bool clockwise) {
     if (clockwise) {
     if (clockwise) {
         tap_code(KC_VOLU);
         tap_code(KC_VOLU);
 #ifdef OLED_DRIVER_ENABLE
 #ifdef OLED_DRIVER_ENABLE
@@ -93,6 +93,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
         process_record_encoder_oled(KC_VOLD);
         process_record_encoder_oled(KC_VOLD);
 #endif
 #endif
     }
     }
+    return true;
 }
 }
 
 
 void matrix_init_user(void) {
 void matrix_init_user(void) {