1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-18 05:45:25 +03:00

Add description to the port list

This commit is contained in:
Miguel Angel Mulero Martinez 2020-08-26 15:38:58 +02:00
parent eb30f6bef0
commit 612a4e4e37
3 changed files with 41 additions and 10 deletions

View file

@ -280,9 +280,12 @@ var serial = {
},
getDevices: function (callback) {
chrome.serial.getDevices(function (devices_array) {
var devices = [];
const devices = [];
devices_array.forEach(function (device) {
devices.push(device.path);
devices.push({
path:device.path,
displayName: device.displayName,
});
});
callback(devices);