1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-22 15:55:33 +03:00

Vbat precision (fixes)

This commit is contained in:
fgiudice98 2018-12-26 15:14:12 +01:00
parent d687e382fe
commit 95f4f1c888
6 changed files with 29 additions and 12 deletions

View file

@ -757,6 +757,12 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('div.batterymetertype').hide();
}
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
$('input[name="mincellvoltage"]').prop('step','0.01');
$('input[name="maxcellvoltage"]').prop('step','0.01');
$('input[name="warningcellvoltage"]').prop('step','0.01');
}
$('input[name="mincellvoltage"]').val(MISC.vbatmincellvoltage);
$('input[name="maxcellvoltage"]').val(MISC.vbatmaxcellvoltage);
$('input[name="warningcellvoltage"]').val(MISC.vbatwarningcellvoltage);