This commit is contained in:
XiNGRZ 2023-05-27 15:17:47 -04:00 committed by GitHub
commit 6b33ea412c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,15 +335,15 @@ int zmk_rgb_underglow_off() {
} }
#endif #endif
k_timer_stop(&underglow_tick);
state.on = false;
for (int i = 0; i < STRIP_NUM_PIXELS; i++) { for (int i = 0; i < STRIP_NUM_PIXELS; i++) {
pixels[i] = (struct led_rgb){r : 0, g : 0, b : 0}; pixels[i] = (struct led_rgb){r : 0, g : 0, b : 0};
} }
led_strip_update_rgb(led_strip, pixels, STRIP_NUM_PIXELS); led_strip_update_rgb(led_strip, pixels, STRIP_NUM_PIXELS);
k_timer_stop(&underglow_tick);
state.on = false;
return zmk_rgb_underglow_save_state(); return zmk_rgb_underglow_save_state();
} }