Explicitly turn LEDs off if the command is interrupted
This commit is contained in:
parent
d24c63c0f1
commit
847c99d804
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue