diff --git a/subsys/shell/backends/shell_rtt.c b/subsys/shell/backends/shell_rtt.c index c8b10cb2567..a27963987b4 100644 --- a/subsys/shell/backends/shell_rtt.c +++ b/subsys/shell/backends/shell_rtt.c @@ -85,6 +85,9 @@ static int enable(const struct shell_transport *transport, bool blocking) struct shell_rtt *sh_rtt = (struct shell_rtt *)transport->ctx; if (blocking) { + if (IS_ENABLED(CONFIG_LOG_MODE_DEFERRED) && IS_ENABLED(CONFIG_SHELL_LOG_BACKEND)) { + panic_mode = true; + } k_timer_stop(&sh_rtt->timer); }