1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-26 01:35:23 +03:00

Merge branch 'master' into MrD-Add-switch-indicators-to-OSD

This commit is contained in:
Darren Lines 2022-02-12 09:06:45 +00:00 committed by GitHub
commit 28e06b9149
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 666 additions and 477 deletions

View file

@ -72,6 +72,14 @@ var Settings = (function () {
var multiplier = parseFloat(input.data('setting-multiplier') || 1);
input.attr('type', 'number');
input.val((s.value / multiplier).toFixed(Math.log10(multiplier)));
if (typeof s.setting.min !== 'undefined' && s.setting.min !== null) {
input.attr('min', (s.setting.min / multiplier).toFixed(Math.log10(multiplier)));
}
if (typeof s.setting.max !== 'undefined' && s.setting.max !== null) {
input.attr('max', (s.setting.max / multiplier).toFixed(Math.log10(multiplier)));
}
}
// If data is defined, We want to convert this value into