shell: fix resize command
Resize command requires shell to be working on UART interrupt driven API. This will be now enabled by default when shell serial backend is selected. Recently this feature was accidentally turned off in PR #11556. k_sleep(1) has been replaced with k_busy_wait(1000) to avoid hanging in command handler. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
parent
d232ef129c
commit
10aeb0e8ab
2 changed files with 3 additions and 2 deletions
|
@ -77,7 +77,7 @@ static int cursor_position_get(const struct shell *shell, u16_t *x, u16_t *y)
|
|||
(void)shell->iface->api->read(shell->iface, &c,
|
||||
sizeof(c), &cnt);
|
||||
if (cnt == 0) {
|
||||
k_sleep(1);
|
||||
k_busy_wait(1000);
|
||||
break;
|
||||
}
|
||||
if ((c != SHELL_VT100_ASCII_ESC) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue