Skip to content

Commit

Permalink
Merge pull request hathach#1783 from scoudreau/usbtmc-high-speed
Browse files Browse the repository at this point in the history
usbtmc: correct packet size bug
  • Loading branch information
hathach authored Dec 9, 2022
2 parents ec2902b + 007ed1f commit f4f85ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class/usbtmc/usbtmc_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ bool tud_usbtmc_start_bus_read()
default:
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, (uint16_t)usbtmc_state.ep_bulk_out_wMaxPacketSize));
return true;
}

Expand Down

0 comments on commit f4f85ba

Please sign in to comment.