fix rgblight_effect_breathing interval time (#5213)

This commit is contained in:
Takeshi ISHII 2019-02-23 01:07:31 +09:00 committed by MechMerlin
parent 384fef72d3
commit e3621c162c

View file

@ -795,7 +795,7 @@ void rgblight_effect_breathing(uint8_t interval) {
static uint16_t last_timer = 0;
float val;
uint8_t interval_time = get_interval_time(&RGBLED_RAINBOW_SWIRL_INTERVALS[interval / 2], 1, 100);
uint8_t interval_time = get_interval_time(&RGBLED_BREATHING_INTERVALS[interval], 1, 100);
if (timer_elapsed(last_timer) < interval_time) {
return;