shell: fix build failure
This didn't compile if CONFIG_SHALL_ECHO_STATUS wasn't enabled. Based on a fix by Rodrigo Peixoto. Fixes: #14546 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
0cd2752eea
commit
2518aaffb5
1 changed files with 1 additions and 1 deletions
|
@ -1091,7 +1091,7 @@ static int instance_init(const struct shell *shell, const void *p_config,
|
|||
}
|
||||
|
||||
flag_tx_rdy_set(shell, true);
|
||||
flag_echo_set(shell, CONFIG_SHELL_ECHO_STATUS);
|
||||
flag_echo_set(shell, IS_ENABLED(CONFIG_SHELL_ECHO_STATUS));
|
||||
flag_mode_delete_set(shell,
|
||||
IS_ENABLED(CONFIG_SHELL_BACKSPACE_MODE_DELETE));
|
||||
shell->ctx->state = SHELL_STATE_INITIALIZED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue