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:
Hake Huang 2021-08-24 12:34:49 +08:00 committed by Maureen Helm
commit cc760c5401

View file

@ -637,6 +637,9 @@ void main(void)
&dtr);
if (dtr) {
break;
} else {
/* Give CPU resources to low priority threads. */
k_sleep(K_MSEC(100));
}
}