summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTommie Gannert <[email protected]>2024-03-15 15:02:13 +0100
committerTommie Gannert <[email protected]>2024-03-15 15:02:13 +0100
commit9e674fa109348d97fb4280ac534be665f619a4d8 (patch)
treead2ef387890684ad52d3e295cee68ac242b52048 /src
parent5ce7b147117826dd75c2d7b347df80b0177e7252 (diff)
[usbtmc] cast to uintptr_t to get rid of const for usbd_edpt_xfer.
Diffstat (limited to 'src')
-rw-r--r--src/class/usbtmc/usbtmc_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/usbtmc/usbtmc_device.c b/src/class/usbtmc/usbtmc_device.c
index debe445fd..4092c37ea 100644
--- a/src/class/usbtmc/usbtmc_device.c
+++ b/src/class/usbtmc/usbtmc_device.c
@@ -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;
}