Closed sandeepmistry closed 5 years ago
Thanks @sandeepmistry, this resolves #3
Should the babble check also be added to controlTransferOut
and transferOut
?
Should the babble check also be added to controlTransferOut and transferOut?
I'm not too sure about this, I was able to trigger the LIBUSB_TRANSFER_OVERFLOW error on controlTransferIn
and transferIn
with a FTDI FT232H when using a transfer length of less than 512 (the endpoint packet size).
Just tried a transferOut
with a buffer of 513 bytes in length of 513, and a result of USBOutTransferResult {bytesWritten: 513, status: "ok"}
was returned in the browser, this maps to the current Node WebUSB result.
Would you mind removing the // hack comments next to the status: ok returns?
Done :)
Great, thanks!
I think your checks show we shouldn't worry about babble on the out
's. I'm merging this.
Similar to #37, but resolves LIBUSB_TRANSFER_OVERFLOW errors in
controlTransferIn
andtransferIn
to status"babble"
.I've also updated the read me to remove the statement
always returns
status"ok"
as now"stalled"
(#37) and"babble"
are returned.