Fix backlight sync on suspend_power_down for split keyboards (#21079)

This commit is contained in:
Evgenii Vilkov 2023-05-31 20:46:03 +02:00 committed by GitHub
parent b3a7f80e1a
commit 04719c774d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -468,7 +468,7 @@ void suspend_power_down_quantum(void) {
#ifndef NO_SUSPEND_POWER_DOWN
// Turn off backlight
# ifdef BACKLIGHT_ENABLE
backlight_set(0);
backlight_level_noeeprom(0);
# endif
# ifdef LED_MATRIX_ENABLE

View file

@ -412,7 +412,7 @@ static void backlight_handlers_slave(matrix_row_t master_matrix[], matrix_row_t
uint8_t backlight_level = split_shmem->backlight_level;
split_shared_memory_unlock();
backlight_set(backlight_level);
backlight_level_noeeprom(backlight_level);
}
# define TRANSACTIONS_BACKLIGHT_MASTER() TRANSACTION_HANDLER_MASTER(backlight)