clear out interrupt flags when disabling timer too

This commit is contained in:
Jeff Epler 2021-12-27 16:42:41 -06:00
parent b1a3ccb36c
commit 1986d2ee71
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -59,6 +59,8 @@ void common_hal_rgbmatrix_timer_enable(void *ptr) {
void common_hal_rgbmatrix_timer_disable(void *ptr) {
int8_t slice = ((intptr_t)ptr) & 0xff;
pwm_set_enabled(slice, false);
irq_set_enabled(PWM_IRQ_WRAP, false);
pwm_clear_irq(slice);
}
void common_hal_rgbmatrix_timer_free(void *ptr) {