Skip to content

Commit

Permalink
Fix backlight sync on suspend_power_down for split keyboards (qmk#21079)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzeneg authored and autoferrit committed Dec 6, 2023
1 parent 8418692 commit 38593c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion quantum/split_common/transactions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 38593c7

Please sign in to comment.