shell: backends: rtt: Set panic_mode flag
A bug was introduced when fb17d0e365 introduced host presence detection. Panic_mode flag was added which indicates that RTT should work in synchronous, blocking mode but it was not set when backend was switched to panic mode. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
1858c1512a
commit
5ac99428ea
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue