sample: usb: hid-cdc: add a sleep for cpu to response
add a sleep while the uart init is fail. so cpu will have chance to output error message Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
This commit is contained in:
parent
741ae93ce2
commit
cc760c5401
1 changed files with 3 additions and 0 deletions
|
@ -637,6 +637,9 @@ void main(void)
|
|||
&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