Skip to content

Commit 819c4c8

Browse files
committed
Hide Motor PWM Speed Separated from PID Speed when DSHOT selected
1 parent 97212af commit 819c4c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tabs/configuration.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,16 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
315315
$('div.maxthrottle').hide();
316316
$('div.mincommand').hide();
317317
$('div.checkboxPwm').hide();
318-
//disable unsyncedPWMSwitch to hide Motor PWM frequency input
319-
$('input[id="unsyncedPWMSwitch"]').prop('checked', false).change()
318+
$('div.unsyncedpwmfreq').hide();
320319

321320
$('div.digitalIdlePercent').show();
322321
} else {
323322
$('div.minthrottle').show();
324323
$('div.maxthrottle').show();
325324
$('div.mincommand').show();
326325
$('div.checkboxPwm').show();
326+
//trigger change unsyncedPWMSwitch to show/hide Motor PWM freq input
327+
$("input[id='unsyncedPWMSwitch']").change();
327328

328329
$('div.digitalIdlePercent').hide();
329330
}

0 commit comments

Comments
 (0)