diff options
| author | aineoae86-sys <[email protected]> | 2026-07-05 16:12:24 +0800 |
|---|---|---|
| committer | aineoae86-sys <[email protected]> | 2026-07-05 19:09:42 +0800 |
| commit | 2b978382d9b4367835178c92518b8b2fb991cb30 (patch) | |
| tree | 131c0758b471ef78ecd866eddcbe3d95cee16d01 | |
| parent | 7bc2e7d129eac0b83ef29b8f6b68defd10613ad5 (diff) | |
Fix USBTMC status byte notification buffer
Queue the USB488 READ_STATUS_BYTE interrupt notification through tud_usbtmc_transmit_notification_data so it uses the class notification endpoint buffer for the asynchronous transfer.
Fixes #2928
Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <[email protected]>
| -rw-r--r-- | src/class/usbtmc/usbtmc_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/usbtmc/usbtmc_device.c b/src/class/usbtmc/usbtmc_device.c index eebc34cfe..07190d89f 100644 --- a/src/class/usbtmc/usbtmc_device.c +++ b/src/class/usbtmc/usbtmc_device.c @@ -826,7 +826,7 @@ bool usbtmcd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request }, .StatusByte = tud_usbtmc_get_stb_cb(&(rsp.USBTMC_status))}; // Must be queued before control request response sent (USB488v1.0 4.3.1.2) - usbd_edpt_xfer(rhport, usbtmc_state.ep_int_in, (void *) &intMsg, sizeof(intMsg), false); + (void) tud_usbtmc_transmit_notification_data(&intMsg, sizeof(intMsg)); } } else { rsp.statusByte = tud_usbtmc_get_stb_cb(&(rsp.USBTMC_status)); |
