mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Update backup/restore functionality so that it restores adjustments,
auxiliary settings and channel forwarding (per-profile). Add "Warning Cell Voltage" to the UI.
This commit is contained in:
parent
e1d2fb3163
commit
502cf718ab
10 changed files with 139 additions and 87 deletions
|
@ -190,6 +190,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
// fill battery
|
||||
$('input[name="mincellvoltage"]').val(MISC.vbatmincellvoltage);
|
||||
$('input[name="maxcellvoltage"]').val(MISC.vbatmaxcellvoltage);
|
||||
$('input[name="warningcellvoltage"]').val(MISC.vbatwarningcellvoltage);
|
||||
$('input[name="voltagescale"]').val(MISC.vbatscale);
|
||||
|
||||
// fill current
|
||||
|
@ -229,6 +230,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
|
||||
MISC.vbatmincellvoltage = parseFloat($('input[name="mincellvoltage"]').val());
|
||||
MISC.vbatmaxcellvoltage = parseFloat($('input[name="maxcellvoltage"]').val());
|
||||
MISC.vbatwarningcellvoltage = parseFloat($('input[name="warningcellvoltage"]').val());
|
||||
MISC.vbatscale = parseInt($('input[name="voltagescale"]').val());
|
||||
|
||||
BF_CONFIG.currentscale = parseInt($('input[name="currentscale"]').val());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue