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: ' + GUI.operating_system + ', ' +