qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

commit 2ffa4798a43682a73598c0b43d46abcca7cd6e83
parent cb33643f0209202e5d195613ad685e3cdae4ef2d
Author: Lenbok <lenbok@gmail.com>
Date:   Sat,  6 Apr 2019 13:19:42 +1300

Fix bugs that cause compile failures when enabling only some animations.

Diffstat:
quantum/rgb_matrix.c | 2+-
quantum/rgb_matrix_animations/breathing_anim.h | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 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 @@ -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) {