Fix Per Key LED Indicator Callbacks (#18450)
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -198,7 +198,7 @@ void eeconfig_init_user(void) {
|
||||
id67_update_rgb_mode();
|
||||
}
|
||||
|
||||
void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||
// Caps Lock key stuff
|
||||
|
||||
if (host_keyboard_led_state().caps_lock) {
|
||||
@@ -216,6 +216,7 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||
} else if (user_config.rgb_disable_perkey) {
|
||||
rgb_matrix_set_color(ID67_CAPS_LOCK_KEY_INDEX, HSV_OFF); // off
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // RGB_MATRIX_ENABLE
|
||||
|
@@ -154,11 +154,7 @@ void keyboard_post_init_user(void) {
|
||||
isRGBOff = false;
|
||||
}
|
||||
|
||||
void rgb_matrix_indicators_user(void) {
|
||||
// do nothing, override base <<weak>> function to disable it
|
||||
}
|
||||
|
||||
void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||
|
||||
uint8_t v = MIN( rgblight_get_val() + RGB_BRIGHTER_BY, 0xFF );
|
||||
uint8_t current_layer = get_highest_layer(layer_state);
|
||||
@@ -239,18 +235,7 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Sleep mode stuff (untested)
|
||||
*/
|
||||
|
||||
void suspend_power_down_user(void) {
|
||||
rgb_matrix_set_suspend_state(true);
|
||||
}
|
||||
|
||||
void suspend_wakeup_init_user(void) {
|
||||
rgb_matrix_set_suspend_state(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user