From ce4ed0b544cf09b5345e5f8212a8efccd69f497c Mon Sep 17 00:00:00 2001 From: Volodymyr Moskalyk Date: Sat, 14 Oct 2017 17:30:08 +0200 Subject: [PATCH] Hide Motor PWM Speed Separated from PID Speed when DSHOT selected --- tabs/configuration.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tabs/configuration.js b/tabs/configuration.js index df4bd1d5..d92099ea 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -309,16 +309,19 @@ TABS.configuration.initialize = function (callback, scrollPosition) { esc_protocol_e.val(PID_ADVANCED_CONFIG.fast_pwm_protocol + 1); esc_protocol_e.change(function () { + //hide not used setting for DSHOT protocol if ($(this).val() - 1 >= self.DSHOT_PROTOCOL_MIN_VALUE) { $('div.minthrottle').hide(); $('div.maxthrottle').hide(); $('div.mincommand').hide(); + $('div.checkboxPwm').hide(); $('div.digitalIdlePercent').show(); } else { $('div.minthrottle').show(); $('div.maxthrottle').show(); $('div.mincommand').show(); + $('div.checkboxPwm').show(); $('div.digitalIdlePercent').hide(); }