Skip to content
Permalink
Browse files

samples: usb: hid-cdc: Use proper value in k_busy_wait()

The wait time value should be in microseconds.

Fixes #18059

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar authored and carlescufi committed Aug 7, 2019
1 parent 1c65789 commit 303ef27535cc7df590d76584bd0c0ee991d222fd
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/subsys/usb/hid-cdc/src/main.c
@@ -644,7 +644,7 @@ void main(void)
LOG_INF("DTR on CDC ACM 1 set");

/* Wait 1 sec for the host to do all settings */
k_busy_wait(K_SECONDS(1));
k_busy_wait(K_SECONDS(1) * USEC_PER_MSEC);

uart_irq_callback_set(cdc0_dev, cdc_mouse_int_handler);
uart_irq_callback_set(cdc1_dev, cdc_kbd_int_handler);

0 comments on commit 303ef27

Please sign in to comment.
You can’t perform that action at this time.