Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorあく <alleteam@gmail.com>2021-07-20 20:14:42 +0300
committerGitHub <noreply@github.com>2021-07-20 20:14:42 +0300
commitf25d000d5349ba3d065228449d4469078710207c (patch)
tree4f55bc56c6cbdd90541f0f41a919268bc0ea6ee8 /applications/cli
parent0dc4081b85a0321d35be86863fb84f9601466fda (diff)
[FL-1558] Technical Debt: console, bootloader, targets, stdglue, etc... (#590)
* ApiHal: console abstraction, change uart baud rate to 230400. Bootloader: drop F5. Furi: prevent thread local output to serial console in stdglue. * ApiHal: take control over system initialization, reorder some subsystems in a hope of fixing USB issues. * Main: cleanup dead code. ISR: take care of HSECSS by our self. USB: leave clock configuration alone. * F6 cube: switch RCC to LL. * Cli: rollback return behavior.
Diffstat (limited to 'applications/cli')
-rw-r--r--applications/cli/cli.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/applications/cli/cli.c b/applications/cli/cli.c
index fa424729..97b35d39 100644
--- a/applications/cli/cli.c
+++ b/applications/cli/cli.c
@@ -155,8 +155,6 @@ static void cli_execute_command(Cli* cli, CliCommand* command, string_t args) {
// Execute command
command->callback(cli, args, command->context);
loader_unlock(loader);
- // Clear line
- cli_reset(cli);
} else {
printf("Other application is running, close it first");
}
@@ -164,8 +162,6 @@ static void cli_execute_command(Cli* cli, CliCommand* command, string_t args) {
} else {
// Execute command
command->callback(cli, args, command->context);
- // Clear line
- cli_reset(cli);
}
if(!(command->flags & CliCommandFlagInsomniaSafe)) {
@@ -212,6 +208,7 @@ static void cli_handle_enter(Cli* cli) {
}
furi_check(osMutexRelease(cli->mutex) == osOK);
+ cli_reset(cli);
cli_prompt(cli);
// Cleanup command and args