Fixup swiftrax/bumblebee (reduce firmware size) (#19834)

This commit is contained in:
jack 2023-02-12 23:11:43 -07:00 committed by GitHub
parent 9a654e5728
commit ef881364d4
Failed to generate hash of commit
3 changed files with 8 additions and 16 deletions

View file

@ -21,18 +21,18 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise))
return false;
if (clockwise)
tap_code16(KC_VOLU);
tap_code(KC_VOLU);
else
tap_code16(KC_VOLD);
tap_code(KC_VOLD);
return true;
}
// Initialize all RGB indicators to 'off'
__attribute__((weak))
void keyboard_post_init_user(void) {
void keyboard_post_init_kb(void) {
rgblight_setrgb_at(0, 0, 0, 0); // [..., 0] = top LED
rgblight_setrgb_at(0, 0, 0, 1); // [..., 1] = middle LED
rgblight_setrgb_at(0, 0, 0, 2); // [..., 2] = bottom LED
keyboard_post_init_user();
}
// RGB Layer Indicators
@ -53,4 +53,4 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
rgblight_setrgb_at(0, 0, 0, 2);
}
return layer_state_set_user(state);
}
}