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:
@@ -137,8 +137,10 @@ led_config_t g_led_config = { {
|
||||
#define CAPS_LOCK_VAL_STEP 8
|
||||
#endif
|
||||
|
||||
__attribute__ ((weak))
|
||||
void rgb_matrix_indicators_user(void) {
|
||||
bool rgb_matrix_indicators_kb(void) {
|
||||
if (!rgb_matrix_indicators_user()) {
|
||||
return false;
|
||||
}
|
||||
if (host_keyboard_led_state().caps_lock) {
|
||||
uint8_t b = rgb_matrix_get_val();
|
||||
if (b < CAPS_LOCK_VAL_STEP) {
|
||||
@@ -150,6 +152,7 @@ void rgb_matrix_indicators_user(void) {
|
||||
}
|
||||
rgb_matrix_set_color(CAPS_LOCK_LED_INDEX, b, b, b); // white, with the adjusted brightness
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user