1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 03:49:53 +03:00

add additional permissions so we can use USB api

This commit is contained in:
cTn 2014-06-08 18:42:31 +02:00
parent 8231c60b3c
commit cda43ac9bf
2 changed files with 13 additions and 0 deletions

View file

@ -53,6 +53,12 @@ var STM32DFU_protocol = function() {
dfuUPLOAD_IDLE: 9, // The device is processing an upload operation. Expecting DFU_UPLOAD requests.
dfuERROR: 10 // An error has occurred. Awaiting the DFU_CLRSTATUS request.
};
this.usbDevices = {
F3DiscoveryDFU: {'vendorId': 1155, 'productId': 57105}
};
this.usbPermissions = {permissions: [{'usbDevices': [this.usbDevices.F3DiscoveryDFU]}]};
};
STM32DFU_protocol.prototype.openDevice = function(callback) {