From 8c345a87ef4d72d3aef2af9fc4114599d7ee0e56 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 7 Jun 2016 14:56:58 -0400 Subject: Don't reboot when CLI logout is intended. --- projects/cli-test/cli-test.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'projects/cli-test/cli-test.c') 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(); -- cgit v1.2.3