samples: wpan_serial: relax wait-for-dtr loop
Relax wait-for-dtr loop and give CPU resources to low priority threads like logging. Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
8220f61eaf
commit
c15d27fb6d
1 changed files with 3 additions and 0 deletions
|
@ -537,6 +537,9 @@ void main(void)
|
|||
uart_line_ctrl_get(dev, UART_LINE_CTRL_DTR, &dtr);
|
||||
if (dtr) {
|
||||
break;
|
||||
} else {
|
||||
/* Give CPU resources to low priority threads. */
|
||||
k_sleep(K_MSEC(100));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue