Fix rendering of keymap_config.no_gui within led_update_kb (#24473)

This commit is contained in:
Joel Challis 2024-10-12 00:06:10 +01:00 committed by GitHub
parent 40d49ee487
commit a10e7cc858
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 13 deletions

View File

@ -150,13 +150,10 @@ const snled27351_led_t PROGMEM g_snled27351_leds[SNLED27351_LED_COUNT] = {
void keyboard_pre_init_kb(void) {
gpio_set_pin_output(LED_WIN_LOCK_PIN); // LED3 Win Lock
gpio_write_pin_low(LED_WIN_LOCK_PIN);
keyboard_pre_init_user();
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if (res) {
void housekeeping_task_kb(void){
gpio_write_pin(LED_WIN_LOCK_PIN, keymap_config.no_gui);
}
return res;
}

View File

@ -151,14 +151,10 @@ const snled27351_led_t PROGMEM g_snled27351_leds[SNLED27351_LED_COUNT] = {
void keyboard_pre_init_kb(void) {
gpio_set_pin_output(LED_WIN_LOCK_PIN); // LED3 Win Lock
gpio_write_pin_low(LED_WIN_LOCK_PIN);
keyboard_pre_init_user();
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if (res) {
led_update_ports(led_state);
void housekeeping_task_kb(void){
gpio_write_pin(LED_WIN_LOCK_PIN, keymap_config.no_gui);
}
return res;
}