1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

IDLE and number of poles

This commit is contained in:
Pawel Spychalski (DzikuVx) 2020-01-22 20:59:11 +01:00
parent 9ffad48591
commit d1bf2242b5
4 changed files with 56 additions and 22 deletions

View file

@ -52,7 +52,15 @@ var Settings = (function () {
input.val(s.value);
} else if (s.setting.type == 'float') {
input.attr('type', 'number');
input.attr('step', "0.01");
let dataStep = input.data("step");
if (dataStep !== undefined) {
input.attr('step', dataStep);
} else {
input.attr('step', "0.01");
}
input.attr('min', s.setting.min);
input.attr('max', s.setting.max);
input.val(s.value.toFixed(2));