mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-26 02:17:38 +06:00
fix rgblight_effect_breathing interval time (#5213)
This commit is contained in:
parent
384fef72d3
commit
e3621c162c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user