From 0e3ae2cde033969507355abcb85f5f7aba2ae978 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Tue, 22 Jun 2021 09:37:28 +1000 Subject: Skip EEPROM writes once done. (#13293) --- quantum/led_matrix.c | 1 + quantum/rgb_matrix.c | 1 + 2 files changed, 2 insertions(+) (limited to 'quantum') diff --git a/quantum/led_matrix.c b/quantum/led_matrix.c index e7e933e1dd..9b6151604f 100644 --- a/quantum/led_matrix.c +++ b/quantum/led_matrix.c @@ -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; } diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index 3c5ddba939..09803c72af 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -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; } -- cgit v1.2.1