From 297df74728766340750ae0dc984be7575b6991b4 Mon Sep 17 00:00:00 2001 From: mtei <2170248+mtei@users.noreply.github.com> Date: Sun, 10 Mar 2019 13:04:55 +0900 Subject: [PATCH] fix build break rgblight_update_sync() when all animation off --- quantum/rgblight.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quantum/rgblight.c b/quantum/rgblight.c index bac9af2f08..b6a034cdaa 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -175,6 +175,7 @@ void rgblight_update_sync(rgblight_config_t *config, rgblight_status_t *status, false); // rgblight_config.speed = config->speed; // NEED??? } +#ifdef RGBLIGHT_USE_TIMER if( status->change_flags & RGBLIGHT_STATUS_CHANGE_TIMER ) { if (status->timer_enabled) { rgblight_timer_enable(); @@ -182,6 +183,7 @@ void rgblight_update_sync(rgblight_config_t *config, rgblight_status_t *status, rgblight_timer_disable(); } } +#endif } #else #define RGBLIGHT_SPLIT_SET_CHANGE_MODE