diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2016-06-08 09:29:45 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2016-06-08 09:29:45 +0200 |
commit | 9abe50042629ac64443738d4f4b66da95b116686 (patch) | |
tree | 55cb03618ac1d7c58ab60717e606ca554b190e57 /projects/cli-test/cli-test.c | |
parent | 3277ffbfe960da93c6f617005cc619958ed419d8 (diff) | |
parent | 8c345a87ef4d72d3aef2af9fc4114599d7ee0e56 (diff) |
Merge branch 'master' of git.cryptech.is.:sw/stm32
Diffstat (limited to 'projects/cli-test/cli-test.c')
-rw-r--r-- | projects/cli-test/cli-test.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/projects/cli-test/cli-test.c b/projects/cli-test/cli-test.c index ed6aac3..a52dbec 100644 --- a/projects/cli-test/cli-test.c +++ b/projects/cli-test/cli-test.c @@ -98,13 +98,11 @@ main() led_off(LED_RED); led_on(LED_GREEN); - embedded_cli_loop(&cli); - - /* embedded_cli_loop returns when the user enters 'quit' or 'exit' */ - - cli_print(&cli, "Rebooting in 3 seconds"); - HAL_Delay(3000); - HAL_NVIC_SystemReset(); + while (1) { + embedded_cli_loop(&cli); + /* embedded_cli_loop returns when the user enters 'quit' or 'exit' */ + cli_print(&cli, "\nLogging out...\n"); + } /* NOT REACHED */ Error_Handler(); |