Skip to content

Commit

Permalink
Skip EEPROM writes once done. (#13293)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc authored Jun 21, 2021
1 parent a89eace commit 0e3ae2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions quantum/led_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ static void led_task_timers(void) {
static void led_task_sync(void) {
// next task
if (led_update_eeprom) eeconfig_update_led_matrix();
led_update_eeprom = false;
if (sync_timer_elapsed32(g_led_timer) >= LED_MATRIX_LED_FLUSH_LIMIT) led_task_state = STARTING;
}

Expand Down
1 change: 1 addition & 0 deletions quantum/rgb_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ static void rgb_task_timers(void) {
static void rgb_task_sync(void) {
// next task
if (rgb_update_eeprom) eeconfig_update_rgb_matrix();
rgb_update_eeprom = false;
if (sync_timer_elapsed32(g_rgb_timer) >= RGB_MATRIX_LED_FLUSH_LIMIT) rgb_task_state = STARTING;
}

Expand Down

0 comments on commit 0e3ae2c

Please sign in to comment.