Explicitly turn LEDs off if the command is interrupted

This commit is contained in:
Adam Dunkels 2011-02-10 22:43:18 +01:00
parent d24c63c0f1
commit 847c99d804

View File

@ -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,