Skip EEPROM writes once done. (#13293)
parent
a89eaceb59
commit
0e3ae2cde0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue