webusb
webusb copied to clipboard
Add correct bytesWritten in transferOut statuses
The controlTransferOut()
and transferOut()
methods should return the count of actual bytes written. Instead, bytesWritten
is being set to the same length as the buffer being written as node-usb
doesn't return the information.
To fix this, the actual value needs to be exposed in node-usb
.