From de692e05e243c88cb1bd1c0fabcb0976f6a343d0 Mon Sep 17 00:00:00 2001 From: Alex Maestas Date: Mon, 18 Dec 2023 06:41:21 +0000 Subject: make any unknown interrupts/faults reset the microcontroller --- watch-library/hardware/startup_saml22.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/watch-library/hardware/startup_saml22.c b/watch-library/hardware/startup_saml22.c index f4982564..2d2027f0 100755 --- a/watch-library/hardware/startup_saml22.c +++ b/watch-library/hardware/startup_saml22.c @@ -220,6 +220,5 @@ void Reset_Handler(void) */ void Dummy_Handler(void) { - while (1) { - } + NVIC_SystemReset(); } -- cgit v1.2.3