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:
Andrew Boie 2019-03-14 23:35:32 -07:00 committed by Kumar Gala
commit 2518aaffb5

View file

@ -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;