mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 17:25:14 +03:00
[SITl] Fix serial selection and executable name on Linux
This commit is contained in:
parent
4ecf58a20b
commit
d689e3d3d6
2 changed files with 44 additions and 39 deletions
11
js/sitl.js
11
js/sitl.js
|
@ -57,7 +57,7 @@ var Ser2TCP = {
|
|||
if (GUI.operating_system == 'Windows') {
|
||||
path = './resources/sitl/windows/Ser2TCP.exe'
|
||||
} else if (GUI.operating_system == 'Linux') {
|
||||
path = './resources/sitl/linux/ser2TCP'
|
||||
path = './resources/sitl/linux/Ser2TCP'
|
||||
chmod(path, 0o755, (err) => {
|
||||
if (err)
|
||||
console.log(err);
|
||||
|
@ -132,8 +132,13 @@ var Ser2TCP = {
|
|||
var m = device.path.match(/COM\d?\d/g)
|
||||
if (m)
|
||||
devices.push(m[0]);
|
||||
} else
|
||||
devices.push(device.displayName);
|
||||
} else {
|
||||
if (device.displayName != null) {
|
||||
var m = device.path.match(/\/dev\/.*/)
|
||||
if (m)
|
||||
devices.push(m[0]);
|
||||
}
|
||||
}
|
||||
});
|
||||
callback(devices);
|
||||
});
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "inav-configurator",
|
||||
"version": "6.0.0",
|
||||
"version": "6.1.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "inav-configurator",
|
||||
"version": "6.0.0",
|
||||
"version": "6.1.0",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"archiver": "^2.0.3",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue