diff --git a/drivers/usb/device/usb_dc_rpi_pico.c b/drivers/usb/device/usb_dc_rpi_pico.c index 7a48057d745..ff8f520a28c 100644 --- a/drivers/usb/device/usb_dc_rpi_pico.c +++ b/drivers/usb/device/usb_dc_rpi_pico.c @@ -330,8 +330,8 @@ static void udc_rpi_isr(const void *arg) msg.ep = 0U; msg.ep_event = false; msg.type = usb_hw->sie_status & USB_SIE_STATUS_CONNECTED_BITS ? - USB_DC_DISCONNECTED : - USB_DC_CONNECTED; + USB_DC_CONNECTED : + USB_DC_DISCONNECTED; k_msgq_put(&usb_dc_msgq, &msg, K_NO_WAIT); }