Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Lines <darren@darrenlines.uk>2021-11-12 23:19:46 +0300
committerGitHub <noreply@github.com>2021-11-12 23:19:46 +0300
commit29e3de2c25b404c278c06a14b66a0374a8183f32 (patch)
tree70f638b18d49ba4fc99036ee03e661470cd09480 /main.js
parent51a62fc85791ffe6482b3436567e3d27566dfe83 (diff)
Update main.js
Added reset for the OSD units if the FC is not connected.
Diffstat (limited to 'main.js')
-rw-r--r--main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.js b/main.js
index 232810c4..09407d5f 100644
--- a/main.js
+++ b/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>, ' +