[usbtmc] cast to uintptr_t to get rid of const for usbd_edpt_xfer.

This commit is contained in:
Tommie Gannert 2024-03-15 15:02:13 +01:00
parent 5ce7b14711
commit 9e674fa109

View File

@ -248,7 +248,7 @@ bool tud_usbtmc_transmit_notification_data(const void * data, size_t len)
#endif
if (usbd_edpt_busy(usbtmc_state.rhport, usbtmc_state.ep_int_in)) return false;
TU_VERIFY(usbd_edpt_xfer(usbtmc_state.rhport, usbtmc_state.ep_int_in, (void *)data, len));
TU_VERIFY(usbd_edpt_xfer(usbtmc_state.rhport, usbtmc_state.ep_int_in, (void *)(uintptr_t) data, len));
return true;
}