drivers: usb_dc_rpi_pico: Fixed connected handling

A connected state was reported as a disconnected state.
This led to wrong reports of the connected state to all systems
relying on it.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
This commit is contained in:
Lukas Gehreke 2024-09-04 09:28:40 +02:00 committed by Mahesh Mahadevan
commit f0c8693931

View file

@ -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);
}