mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
cli_shell: add safety check to set_prompt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user