mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 05:45:25 +03:00
Make virtual mode an option using msp backup and restore
This commit is contained in:
parent
c9b7ed8fd7
commit
bad27d3d15
6 changed files with 69 additions and 38 deletions
|
@ -270,13 +270,11 @@ const serial = {
|
|||
|
||||
chrome.serial.getDevices(function (devices_array) {
|
||||
const devices = [];
|
||||
let showAllSerialDevices = false;
|
||||
|
||||
devices_array.forEach(function (device) {
|
||||
ConfigStorage.get('showAllSerialDevices', res => showAllSerialDevices = res.showAllSerialDevices);
|
||||
const isKnownSerialDevice = self.serialDevices.some(el => el.vendorId === device.vendorId) && self.serialDevices.some(el => el.productId === device.productId);
|
||||
|
||||
if (isKnownSerialDevice || showAllSerialDevices) {
|
||||
if (isKnownSerialDevice || PortHandler.showAllSerialDevices) {
|
||||
devices.push({
|
||||
path: device.path,
|
||||
displayName: device.displayName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue