drivers: usb_dc_nrfx: always reset data toggle in usb_dc_ep_enable
Data toggle should be reset after SetConfiguration or SetInterface request. Always reset data toggle in usb_dc_ep_enable. Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
388c6ea01f
commit
4253280525
|
@ -1573,6 +1573,7 @@ int usb_dc_ep_enable(const u8_t ep)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
nrfx_usbd_ep_dtoggle_clear(ep_addr_to_nrfx(ep));
|
||||
if (ep_ctx->cfg.en) {
|
||||
return -EALREADY;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue