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:
parent
6162bf91bf
commit
f0c8693931
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue