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:
parent
eb30f6bef0
commit
612a4e4e37
3 changed files with 41 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue