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:
Krzysztof Chruscinski 2019-06-03 12:49:49 +02:00 committed by Carles Cufí
commit 63e0ae0a9e

View file

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