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.
The
controlTransferOut()
andtransferOut()
methods should return the count of actual bytes written. Instead,bytesWritten
is being set to the same length as the buffer being written asnode-usb
doesn't return the information.To fix this, the actual value needs to be exposed in
node-usb
.