Hide Motor PWM Speed Separated from PID Speed when DSHOT selected

10.3.x-maintenance
Volodymyr Moskalyk 2017-10-15 15:55:31 +02:00
parent 97212afccb
commit 819c4c8a98
1 changed files with 3 additions and 2 deletions

View File

@ -315,8 +315,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('div.maxthrottle').hide();
$('div.mincommand').hide();
$('div.checkboxPwm').hide();
//disable unsyncedPWMSwitch to hide Motor PWM frequency input
$('input[id="unsyncedPWMSwitch"]').prop('checked', false).change()
$('div.unsyncedpwmfreq').hide();
$('div.digitalIdlePercent').show();
} else {
@ -324,6 +323,8 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('div.maxthrottle').show();
$('div.mincommand').show();
$('div.checkboxPwm').show();
//trigger change unsyncedPWMSwitch to show/hide Motor PWM freq input
$("input[id='unsyncedPWMSwitch']").change();
$('div.digitalIdlePercent').hide();
}