usbtmc: correct packet size bug

Code was only reading the first 64 bytes of a 512 bytes packet.
This commit is contained in:
Sebastien COUDREAU 2022-12-08 11:18:28 +01:00
parent d4620d99d3
commit 15ab35d9b8
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ bool tud_usbtmc_start_bus_read()
default: default:
TU_VERIFY(false); TU_VERIFY(false);
} }
TU_VERIFY(usbd_edpt_xfer(usbtmc_state.rhport, usbtmc_state.ep_bulk_out, usbtmc_state.ep_bulk_out_buf, 64)); TU_VERIFY(usbd_edpt_xfer(usbtmc_state.rhport, usbtmc_state.ep_bulk_out, usbtmc_state.ep_bulk_out_buf, usbtmc_state.ep_bulk_out_wMaxPacketSize));
return true; return true;
} }