samples: cdc_acm: do not block for one second after DTR set
There is no need to block the thread for a second. Let it sleep for 100 milliseconds, which should be enough to set the host baud rate. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
7a90b221a5
commit
f09111a2a9
1 changed files with 2 additions and 2 deletions
|
@ -200,8 +200,8 @@ void main(void)
|
||||||
LOG_WRN("Failed to set DSR, ret code %d", ret);
|
LOG_WRN("Failed to set DSR, ret code %d", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wait 1 sec for the host to do all settings */
|
/* Wait 100ms for the host to do all settings */
|
||||||
k_busy_wait(1000000);
|
k_msleep(100);
|
||||||
|
|
||||||
ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate);
|
ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue