components,finsh,shell: do not sleep when there is no input
This commit is contained in:
parent
ef2f35cee7
commit
31be4bd348
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ int finsh_getchar(void)
|
|||
|
||||
while (rt_device_read(device, -1, &ch, 1) != 1)
|
||||
{
|
||||
rt_sem_take(&shell->rx_sem, RT_WAITING_FOREVER);
|
||||
//rt_sem_take(&shell->rx_sem, RT_WAITING_FOREVER);
|
||||
if (shell->device != device)
|
||||
{
|
||||
device = shell->device;
|
||||
|
|
Loading…
Add table
Reference in a new issue