diff options
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -17,10 +17,7 @@ #include <avr/interrupt.h> #define assert(x) if (!(x)) { \ puts("assert in " __FILE__ ":" #x); \ - sleep_enable (); \ - while (1) { \ - sleep_cpu (); \ - } \ + shutdownError (); \ } #include <stdbool.h> @@ -45,5 +42,7 @@ enum { wakeup &= ~(1 << x); \ } +void shutdownError (); + #endif /* COMMON_H */ |