shell: Fix shell uart not waking up shell on mcumgr data
When mcumgr smp data was received over shell uart transport it was not waking up shell thread and thus request was not processed. Shell thread must be waken up on any incoming data, even data which is only dedicated for mcumgr smp. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
2692f2e616
commit
63e0ae0a9e
1 changed files with 2 additions and 1 deletions
|
@ -53,9 +53,10 @@ static void uart_rx_handle(const struct shell_uart *sh_uart)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
rd_len -= i;
|
||||
new_data = true;
|
||||
if (rd_len) {
|
||||
new_data = true;
|
||||
for (u32_t j = 0; j < rd_len; j++) {
|
||||
data[j] = data[i + j];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue