summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-03-18 22:08:48 -0700
committerKeith Packard <keithp@keithp.com>2012-03-28 21:37:02 -0700
commit1ca46760cf903860dccb4864578558a1abb6e0fa (patch)
tree63c2d86d96c5b3ec78156b7631173b2507c00a60 /src
parent4bfce11873f34af9621c60f83a8355f85769f6d3 (diff)
When debugging, send ao_panic message to ao_debug_out
Use the low-level debug hooks to get the panic state sent to the serial port. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/ao_panic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ao_panic.c b/src/core/ao_panic.c
index 244917a8..25dc145e 100644
--- a/src/core/ao_panic.c
+++ b/src/core/ao_panic.c
@@ -45,6 +45,10 @@ ao_panic(uint8_t reason)
{
uint8_t n;
+#if LOW_LEVEL_DEBUG
+ ao_cur_task = NULL;
+ printf ("panic %d\n", reason);
+#endif
__critical for (;;) {
ao_panic_delay(20);
for (n = 0; n < 5; n++) {