Skip to content

Commit

Permalink
fix rgblight_effect_breathing interval time (qmk#5213)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtei authored and zer09 committed Feb 24, 2019
1 parent f386cf0 commit 4127668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4127668

Please sign in to comment.