samd: actually disable protomatter timer

Just setting the timer handler to NO_INTERRUPT doesn't stop the
interrupt from occurring.
This commit is contained in:
Jeff Epler 2020-04-07 11:18:57 -05:00
parent baf04b7738
commit 23bced26da
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ void common_hal_protomatter_timer_disable(void* ptr) {
return;
}
set_timer_handler(true, timer_index, TC_HANDLER_NO_INTERRUPT);
tc_set_enable(ptr, false);
}
void common_hal_protomatter_timer_free(void* ptr) {