summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-04-07 11:18:57 -0500
committerJeff Epler <jepler@gmail.com>2020-04-14 18:24:58 -0500
commit23bced26da40d5d87b0aac18e6aac525d4d27bac (patch)
treecf36b0056c9d2019509526c182e3ec99a69373b7
parentbaf04b7738bdcf234eecad9e03904c1cadc44f50 (diff)
samd: actually disable protomatter timer
Just setting the timer handler to NO_INTERRUPT doesn't stop the interrupt from occurring.
-rw-r--r--ports/atmel-samd/common-hal/_protomatter/Protomatter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/atmel-samd/common-hal/_protomatter/Protomatter.c b/ports/atmel-samd/common-hal/_protomatter/Protomatter.c
index 702de0e3d..bf9cafb6b 100644
--- a/ports/atmel-samd/common-hal/_protomatter/Protomatter.c
+++ b/ports/atmel-samd/common-hal/_protomatter/Protomatter.c
@@ -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) {