report only actual bytes received, not allocated buffer size (interrupt produces data, timeout doesn't)

This commit is contained in:
Florian Staudacher 2020-05-29 02:20:15 +02:00 committed by akallabeth
parent 03128d5154
commit d1dc2fb03d
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ static void func_bulk_transfer_cb(struct libusb_transfer* transfer)
user_data->cb(user_data->idev, user_data->callback, user_data->data, InterfaceId,
user_data->noack, user_data->MessageId, RequestID, transfer->num_iso_packets,
transfer->status, user_data->StartFrame, user_data->ErrorCount,
user_data->OutputBufferSize);
transfer->actual_length);
user_data->data = NULL;
HashTable_Remove(user_data->queue, (void*)(size_t)streamID);
}