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:
parent
9ffad48591
commit
d1bf2242b5
4 changed files with 56 additions and 22 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue