Skip to content

Commit

Permalink
Provide a callback to node-usb controlTransfer function
Browse files Browse the repository at this point in the history
  • Loading branch information
geovie committed Oct 25, 2017
1 parent 70eeda3 commit 0ff48c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/usb.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ BluetoothHciSocket.prototype.write = function(data) {
var type = data.readUInt8(0);

if (HCI_COMMAND_PKT === type) {
this._usbDevice.controlTransfer(usb.LIBUSB_REQUEST_TYPE_CLASS | usb.LIBUSB_RECIPIENT_INTERFACE, 0, 0, 0, data.slice(1));
this._usbDevice.controlTransfer(usb.LIBUSB_REQUEST_TYPE_CLASS | usb.LIBUSB_RECIPIENT_INTERFACE, 0, 0, 0, data.slice(1), function() {});
} else if(HCI_ACLDATA_PKT === type) {
this._aclDataOutEndpoint.transfer(data.slice(1));
}
Expand Down

0 comments on commit 0ff48c3

Please sign in to comment.