drivers: usb_dc_nrfx: add logging for NRFX_USBD_EP_ABORTED event

Add logging for NRFX_USBD_EP_ABORTED event inside
control transfer events handling, otherwise "Unexpected event"
error message in this regard confuses the users.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2021-08-23 17:09:15 +02:00 committed by Anas Nashif
commit 010b448454

View file

@ -895,6 +895,12 @@ static void usbd_event_transfer_ctrl(nrfx_usbd_evt_t const *const p_event)
}
break;
case NRFX_USBD_EP_ABORTED: {
LOG_DBG("Endpoint 0x%02x write aborted",
p_event->data.eptransfer.ep);
}
break;
default: {
LOG_ERR("Unexpected event (nrfx_usbd): %d, ep 0x%02x",
p_event->data.eptransfer.status,