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:
Johann Fischer 2020-04-02 10:02:42 +02:00 committed by Carles Cufí
commit c15d27fb6d

View file

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