mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 04:41:28 +00:00
Move momentum decay task out of rgblight_task()
This commit is contained in:
parent
b444fa38af
commit
e7a39d9c12
@ -571,9 +571,6 @@ void rgblight_show_solid_color(uint8_t r, uint8_t g, uint8_t b) {
|
|||||||
void rgblight_task(void) {
|
void rgblight_task(void) {
|
||||||
|
|
||||||
if (rgblight_timer_enabled) {
|
if (rgblight_timer_enabled) {
|
||||||
|
|
||||||
if (momentum_enabled()) momentum_decay_task();
|
|
||||||
|
|
||||||
// mode = 1, static light, do nothing here
|
// mode = 1, static light, do nothing here
|
||||||
if (rgblight_config.mode >= 2 && rgblight_config.mode <= 5) {
|
if (rgblight_config.mode >= 2 && rgblight_config.mode <= 5) {
|
||||||
// mode = 2 to 5, breathing mode
|
// mode = 2 to 5, breathing mode
|
||||||
|
@ -1074,6 +1074,8 @@ int main(void)
|
|||||||
MIDI_Device_USBTask(&USB_MIDI_Interface);
|
MIDI_Device_USBTask(&USB_MIDI_Interface);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (momentum_enabled()) momentum_decay_task();
|
||||||
|
|
||||||
#if defined(RGBLIGHT_ANIMATIONS) & defined(RGBLIGHT_ENABLE)
|
#if defined(RGBLIGHT_ANIMATIONS) & defined(RGBLIGHT_ENABLE)
|
||||||
rgblight_task();
|
rgblight_task();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user