Skip to content

Commit

Permalink
[usbtmc] cast to uintptr_t to get rid of const for usbd_edpt_xfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
tommie committed Mar 15, 2024
1 parent 5ce7b14 commit 9e674fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class/usbtmc/usbtmc_device.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9e674fa

Please sign in to comment.