mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 03:19:54 +03:00
Activate defaults only on 2.3 firmware
This commit is contained in:
parent
91ffb96e1e
commit
85893d07cd
1 changed files with 4 additions and 1 deletions
|
@ -199,6 +199,10 @@ function onValidFirmware()
|
|||
GUI.allowedTabs = GUI.defaultAllowedTabsWhenConnected.slice();
|
||||
onConnect();
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "2.3.0")) {
|
||||
helper.defaultsDialog.init();
|
||||
}
|
||||
|
||||
$('#tabs ul.mode-connected .tab_setup a').click();
|
||||
});
|
||||
});
|
||||
|
@ -336,7 +340,6 @@ function onConnect() {
|
|||
}, 100);
|
||||
|
||||
helper.interval.add('global_data_refresh', helper.periodicStatusUpdater.run, helper.periodicStatusUpdater.getUpdateInterval(serial.bitrate), false);
|
||||
helper.defaultsDialog.init();
|
||||
}
|
||||
|
||||
function onClosed(result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue