mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
Update main.js
Added reset for the OSD units if the FC is not connected.
This commit is contained in:
parent
51a62fc857
commit
29e3de2c25
1 changed files with 5 additions and 0 deletions
5
main.js
5
main.js
|
@ -65,6 +65,11 @@ $(document).ready(function () {
|
|||
}
|
||||
globalSettings.proxyLayer = result.proxylayer;
|
||||
});
|
||||
|
||||
// Resets the OSD units used by the unit coversion when the FC is disconnected.
|
||||
if (!CONFIGURATOR.connectionValid) {
|
||||
globalSettings.osdUnits = null;
|
||||
}
|
||||
|
||||
// alternative - window.navigator.appVersion.match(/Chrome\/([0-9.]*)/)[1];
|
||||
GUI.log('Running - OS: <strong>' + GUI.operating_system + '</strong>, ' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue