1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

cli_shell: add safety check to set_prompt

This commit is contained in:
Anna Antonenko
2025-04-08 16:02:33 +04:00
parent 6b7a7c5709
commit 9a6aa17bee

View File

@@ -474,5 +474,6 @@ void cli_shell_join(CliShell* shell) {
void cli_shell_set_prompt(CliShell* shell, const char* prompt) {
furi_check(shell);
furi_check(furi_thread_get_state(shell->thread) == FuriThreadStateStopped);
shell->prompt = prompt;
}