aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgb_matrix.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-06-22 09:37:28 +1000
committerGitHub <noreply@github.com>2021-06-22 09:37:28 +1000
commit0e3ae2cde033969507355abcb85f5f7aba2ae978 (patch)
tree2009d330f77d4fd77f1cf200d8fb92dff213f3c3 /quantum/rgb_matrix.c
parenta89eaceb59d0133013a7638b3f38f0104e0d6c9f (diff)
downloadqmk_firmware-0e3ae2cde033969507355abcb85f5f7aba2ae978.tar.gz
qmk_firmware-0e3ae2cde033969507355abcb85f5f7aba2ae978.zip
Skip EEPROM writes once done. (#13293)
Diffstat (limited to 'quantum/rgb_matrix.c')
-rw-r--r--quantum/rgb_matrix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c
index 3c5ddba93..09803c72a 100644
--- a/quantum/rgb_matrix.c
+++ b/quantum/rgb_matrix.c
@@ -321,6 +321,7 @@ static void rgb_task_timers(void) {
321static void rgb_task_sync(void) { 321static void rgb_task_sync(void) {
322 // next task 322 // next task
323 if (rgb_update_eeprom) eeconfig_update_rgb_matrix(); 323 if (rgb_update_eeprom) eeconfig_update_rgb_matrix();
324 rgb_update_eeprom = false;
324 if (sync_timer_elapsed32(g_rgb_timer) >= RGB_MATRIX_LED_FLUSH_LIMIT) rgb_task_state = STARTING; 325 if (sync_timer_elapsed32(g_rgb_timer) >= RGB_MATRIX_LED_FLUSH_LIMIT) rgb_task_state = STARTING;
325} 326}
326 327