diff options
author | Lenbok <lenbok@gmail.com> | 2019-04-06 13:19:42 +1300 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-04-09 09:49:24 -0700 |
commit | 45207b079be14365cebb7d2f236a14eae5a4bd9b (patch) | |
tree | f2c876b949691a575f04824e53a0cac338825ba2 /quantum | |
parent | 431766476b100c15ce8443ace1b258bc813c8c78 (diff) |
Fix bugs that cause compile failures when enabling only some animations.
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/rgb_matrix.c | 2 | ||||
-rw-r--r-- | quantum/rgb_matrix_animations/breathing_anim.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index 413e5777fc..a1193d4c07 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -101,7 +101,7 @@ void eeconfig_update_rgb_matrix(uint32_t val) { void eeconfig_update_rgb_matrix_default(void) { dprintf("eeconfig_update_rgb_matrix_default\n"); rgb_matrix_config.enable = 1; -#ifndef DISABLE_RGB_MATRIX_CYCLE_ALL +#ifndef DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT rgb_matrix_config.mode = RGB_MATRIX_CYCLE_LEFT_RIGHT; #else // fallback to solid colors if RGB_MATRIX_CYCLE_LEFT_RIGHT is disabled in userspace diff --git a/quantum/rgb_matrix_animations/breathing_anim.h b/quantum/rgb_matrix_animations/breathing_anim.h index fb90b66bdf..4a9a1dcdb2 100644 --- a/quantum/rgb_matrix_animations/breathing_anim.h +++ b/quantum/rgb_matrix_animations/breathing_anim.h @@ -1,6 +1,7 @@ #pragma once #ifndef DISABLE_RGB_MATRIX_BREATHING +extern rgb_counters_t g_rgb_counters; extern rgb_config_t rgb_matrix_config; bool rgb_matrix_breathing(effect_params_t* params) { |