1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 06:15:13 +03:00

Hide Motor PWM Speed Separated from PID Speed when DSHOT selected

This commit is contained in:
Volodymyr Moskalyk 2017-10-14 17:30:08 +02:00
parent bd757f49af
commit ce4ed0b544

View file

@ -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();
}