fix build break rgblight_update_sync() when all animation off

pull/5020/head
mtei 6 years ago
parent 185627d5f2
commit 297df74728

@ -175,6 +175,7 @@ void rgblight_update_sync(rgblight_config_t *config, rgblight_status_t *status,
false); false);
// rgblight_config.speed = config->speed; // NEED??? // rgblight_config.speed = config->speed; // NEED???
} }
#ifdef RGBLIGHT_USE_TIMER
if( status->change_flags & RGBLIGHT_STATUS_CHANGE_TIMER ) { if( status->change_flags & RGBLIGHT_STATUS_CHANGE_TIMER ) {
if (status->timer_enabled) { if (status->timer_enabled) {
rgblight_timer_enable(); rgblight_timer_enable();
@ -182,6 +183,7 @@ void rgblight_update_sync(rgblight_config_t *config, rgblight_status_t *status,
rgblight_timer_disable(); rgblight_timer_disable();
} }
} }
#endif
} }
#else #else
#define RGBLIGHT_SPLIT_SET_CHANGE_MODE #define RGBLIGHT_SPLIT_SET_CHANGE_MODE

Loading…
Cancel
Save