mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-17 05:15:20 +03:00
Merge branch 'master' of https://github.com/RomanLut/inav-configurator into submit-serial-receiver
This commit is contained in:
commit
d49b859c50
38 changed files with 303 additions and 516 deletions
11
js/sitl.js
11
js/sitl.js
|
@ -67,10 +67,11 @@ var SitlSerialPortUtils = {
|
|||
if (m)
|
||||
devices.push(m[0]);
|
||||
} else {
|
||||
if (device.displayName != null) {
|
||||
var m = device.path.match(/\/dev\/.*/)
|
||||
if (m)
|
||||
devices.push(m[0]);
|
||||
/* Limit to: USB serial, RFCOMM (BT), 6 legacy devices */
|
||||
if (device.pnpId ||
|
||||
device.path.match(/rfcomm\d*/) ||
|
||||
device.path.match(/ttyS[0-5]$/)) {
|
||||
devices.push(device.path);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -239,4 +240,4 @@ var SITLProcess = {
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = { SITLProcess };
|
||||
module.exports = { SITLProcess, SitlSerialPortUtils };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue