mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 21:22:05 +00:00
fix build break rgblight_update_sync() when all animation off
This commit is contained in:
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…
Reference in New Issue
Block a user