Browse Source

Skip EEPROM writes once done. (#13293)

pull/13257/head
Nick Brassel 2 years ago
committed by GitHub
parent
commit
0e3ae2cde0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      quantum/led_matrix.c
  2. +1
    -0
      quantum/rgb_matrix.c

+ 1
- 0
quantum/led_matrix.c View File

@ -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;
}


+ 1
- 0
quantum/rgb_matrix.c View File

@ -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;
}


Loading…
Cancel
Save