mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 05:15:21 +03:00
Fix cli output
Fix rememberLastTab Fix sonar issues
This commit is contained in:
parent
1c775439a1
commit
e85b706ad6
13 changed files with 23 additions and 42 deletions
|
@ -2,8 +2,7 @@ import { i18n } from "../localization";
|
|||
|
||||
const failsafe = {};
|
||||
|
||||
failsafe.initialize = function (callback, scrollPosition) {
|
||||
const self = this;
|
||||
failsafe.initialize = function (callback) {
|
||||
|
||||
if (GUI.active_tab != 'failsafe') {
|
||||
GUI.active_tab = 'failsafe';
|
||||
|
@ -219,11 +218,6 @@ failsafe.initialize = function (callback, scrollPosition) {
|
|||
FC.RXFAIL_CONFIG[i].value = parseInt($(this).val());
|
||||
});
|
||||
|
||||
// for some odd reason chrome 38+ changes scroll according to the touched select element
|
||||
// i am guessing this is a bug, since this wasn't happening on 37
|
||||
// code below is a temporary fix, which we will be able to remove in the future (hopefully)
|
||||
$('#content').scrollTop((scrollPosition) ? scrollPosition : 0);
|
||||
|
||||
// fill stage 1 Valid Pulse Range Settings
|
||||
$('input[name="rx_min_usec"]').val(FC.RX_CONFIG.rx_min_usec);
|
||||
$('input[name="rx_max_usec"]').val(FC.RX_CONFIG.rx_max_usec);
|
||||
|
@ -413,7 +407,7 @@ failsafe.initialize = function (callback, scrollPosition) {
|
|||
GUI.log(i18n.getMessage('configurationEepromSaved'));
|
||||
|
||||
GUI.tab_switch_cleanup(function() {
|
||||
MSP.send_message(MSPCodes.MSP_SET_REBOOT, false, false, reinitializeConnection(self));
|
||||
MSP.send_message(MSPCodes.MSP_SET_REBOOT, false, false, reinitializeConnection);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue