From bac2e2572bf2d12aed8f0eecdd2b47bf4c29c001 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 19 Nov 2019 00:25:54 -0700 Subject: enabled prevent_reboot_loop() on all builds, to reduce the impact of any potential crashes (even though I just fixed the only known bug which could trigger an unintentional reboot) --- spaghetti-monster/fsm-main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/spaghetti-monster/fsm-main.c b/spaghetti-monster/fsm-main.c index c9ab69b..d352a36 100644 --- a/spaghetti-monster/fsm-main.c +++ b/spaghetti-monster/fsm-main.c @@ -79,22 +79,24 @@ inline void hw_setup() { #endif -#ifdef USE_REBOOT -void prevent_reboot_loop() { +//#ifdef USE_REBOOT +static inline void prevent_reboot_loop() { // prevent WDT from rebooting MCU again MCUSR &= ~(1<