From 847c99d804089be77bf869954b99b06d57cdcbda Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Thu, 10 Feb 2011 22:43:18 +0100 Subject: [PATCH] Explicitly turn LEDs off if the command is interrupted --- apps/shell/shell-reboot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/shell/shell-reboot.c b/apps/shell/shell-reboot.c index 6b8152bd2..ded90cf5f 100644 --- a/apps/shell/shell-reboot.c +++ b/apps/shell/shell-reboot.c @@ -56,6 +56,9 @@ SHELL_COMMAND(reboot_command, PROCESS_THREAD(shell_reboot_process, ev, data) { static struct etimer etimer; + + PROCESS_EXITHANDLER(leds_off(LEDS_ALL);) + PROCESS_BEGIN(); shell_output_str(&reboot_command,