From 618c75b72beab5ea97f53e2f0caeb2e9eeeab22f Mon Sep 17 00:00:00 2001 From: r4 Date: Tue, 19 Apr 2022 19:45:13 +0200 Subject: [PATCH] - error message --- spybug/sys.cpp | 2 ++ spybug/sys.hh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/spybug/sys.cpp b/spybug/sys.cpp index fb31e04..c741e53 100644 --- a/spybug/sys.cpp +++ b/spybug/sys.cpp @@ -3,6 +3,8 @@ #include "sys.hh" +void (*full_reset)() = nullptr; + static volatile bool wdt_int_sleep_mode = false; ISR (WDT_vect) { if (wdt_int_sleep_mode) diff --git a/spybug/sys.hh b/spybug/sys.hh index d89742f..44a256c 100644 --- a/spybug/sys.hh +++ b/spybug/sys.hh @@ -8,7 +8,7 @@ #include #include -static void (*full_reset)() = nullptr; +extern void (*full_reset)(); void low_power_sleep_minutes(unsigned long t);