1
0
Fork 0
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:
Roman Lut 2024-04-28 21:25:24 +02:00
commit d49b859c50
38 changed files with 303 additions and 516 deletions

View file

@ -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 };