diff --git a/subsys/usb/class/cdc_acm.c b/subsys/usb/class/cdc_acm.c index 970bc4855fa..9ef9a236742 100644 --- a/subsys/usb/class/cdc_acm.c +++ b/subsys/usb/class/cdc_acm.c @@ -37,7 +37,7 @@ * Driver for USB CDC ACM device class driver */ -#include +#include #include #include #include @@ -747,7 +747,7 @@ static int cdc_acm_send_notification(struct device *dev, uint16_t serial_state) /* Wait for notification to be sent */ while (!((volatile uint8_t)dev_data->notification_sent)) { - sys_thread_busy_wait(1); + k_busy_wait(1); if (++cnt > CDC_CONTROL_SERIAL_STATE_TIMEOUT_US) { SYS_LOG_DBG("CDC ACM notification timeout!");