fix ncm warning

This commit is contained in:
hathach 2022-12-27 18:21:56 +07:00
parent 301b6af6c6
commit d0ca6ca8f7
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA

View File

@ -392,7 +392,7 @@ bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t
if (NCM_GET_NTB_PARAMETERS == request->bRequest)
{
tud_control_xfer(rhport, request, (void*)&ntb_parameters, sizeof(ntb_parameters));
tud_control_xfer(rhport, request, (void*)(uintptr_t) &ntb_parameters, sizeof(ntb_parameters));
}
break;