rgb_underglow: refresh more frequently for smoother RGB underglow

This commit is contained in:
Chris Andreae 2022-05-28 20:15:51 +09:00
parent 8cd7a370bd
commit d922e0530a
No known key found for this signature in database
GPG key ID: 3AA9D181B3ABD33F

View file

@ -276,7 +276,7 @@ static int zmk_rgb_underglow_init(const struct device *_arg) {
#endif
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;
@ -314,7 +314,7 @@ int zmk_rgb_underglow_on() {
state.on = true;
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();
}