rgb_underglow: refresh more frequently for smoother RGB underglow
This commit is contained in:
parent
8cd7a370bd
commit
d922e0530a
1 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ static int zmk_rgb_underglow_init(const struct device *_arg) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (state.on) {
|
if (state.on) {
|
||||||
k_timer_start(&underglow_tick, K_NO_WAIT, K_MSEC(50));
|
k_timer_start(&underglow_tick, K_NO_WAIT, K_MSEC(25));
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -314,7 +314,7 @@ int zmk_rgb_underglow_on() {
|
||||||
|
|
||||||
state.on = true;
|
state.on = true;
|
||||||
state.animation_step = 0;
|
state.animation_step = 0;
|
||||||
k_timer_start(&underglow_tick, K_NO_WAIT, K_MSEC(50));
|
k_timer_start(&underglow_tick, K_NO_WAIT, K_MSEC(25));
|
||||||
|
|
||||||
return zmk_rgb_underglow_save_state();
|
return zmk_rgb_underglow_save_state();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue