Skip to content

Commit

Permalink
Change maximum packet size to maximum bytes per interval when available
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisRo committed Jul 5, 2021
1 parent 4db2470 commit fd587e1
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions libusbK/src/kBench/kBench.c
Original file line number Diff line number Diff line change
Expand Up @@ -1649,12 +1649,22 @@ void ShowTransferInfo(PBENCHMARK_TRANSFER_PARAM transferParam)

if (!transferParam) return;

CONMSG("%s %s (Ep%02Xh) max packet size: %d\n",
EndpointTypeDisplayString[ENDPOINT_TYPE(transferParam)],
TRANSFER_DISPLAY(transferParam, "Read", "Write"),
transferParam->Ep.PipeId,
transferParam->Ep.MaximumPacketSize);

if (transferParam->Ep.MaximumBytesPerInterval != 0)
{
CONMSG("%s %s (Ep%02Xh) max bytes per interval: %lu\n",
EndpointTypeDisplayString[ENDPOINT_TYPE(transferParam)],
TRANSFER_DISPLAY(transferParam, "Read", "Write"),
transferParam->Ep.PipeId,
transferParam->Ep.MaximumBytesPerInterval);
}
else
{
CONMSG("%s %s (Ep%02Xh) max packet size: %d\n",
EndpointTypeDisplayString[ENDPOINT_TYPE(transferParam)],
TRANSFER_DISPLAY(transferParam, "Read", "Write"),
transferParam->Ep.PipeId,
transferParam->Ep.MaximumPacketSize);
}
if (transferParam->StartTick)
{
GetAverageBytesSec(transferParam, &bpsAverage);
Expand Down

0 comments on commit fd587e1

Please sign in to comment.