Update keyboards/sakura_workshop/fuji75/fuji75.c

Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
Freather 2023-09-30 03:31:41 +08:00 committed by GitHub
parent 1145da8a5e
commit 41a21bf7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,13 +30,17 @@ const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
my_capsoff_layer
);
void keyboard_post_init_user(void){
void keyboard_post_init_kb(void) {
rgblight_layers = my_rgb_layers;
keyboard_post_init_user();
}
bool led_update_user(led_t led_state) {
rgblight_set_layer_state(0, led_state.caps_lock);
rgblight_set_layer_state(1, !led_state.caps_lock);
return true;
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
rgblight_set_layer_state(0, led_state.caps_lock);
rgblight_set_layer_state(1, !led_state.caps_lock);
}
return res;
}