summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2026-07-05 13:23:41 +0200
committerGitHub <[email protected]>2026-07-05 13:23:41 +0200
commitbe2218e3d842935d3fd41de8be9e12f55ef0190f (patch)
treefdb7492d8e643b854181a62f4eec85aeb4b2eb3e
parent6fc114c8271e25160390c0ac5ea798c2f7cee315 (diff)
parent2b978382d9b4367835178c92518b8b2fb991cb30 (diff)
Merge pull request #3754 from Old-Ding/codex/usbtmc-status-byte-buffer
Fix USBTMC status byte interrupt buffer
-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 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));