Skip to content

Commit

Permalink
simplifing digitalIdle hidding
Browse files Browse the repository at this point in the history
  • Loading branch information
asizon committed Nov 2, 2023
1 parent 84d3fc8 commit fba2ba1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/js/tabs/motors.js
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,7 @@ motors.initialize = async function (callback) {
$('div.checkboxPwm').toggle(protocolConfigured && !digitalProtocol);
divUnsyncedPWMFreq.toggle(protocolConfigured && !digitalProtocol);

$('div.digitalIdlePercent').toggle(protocolConfigured && digitalProtocol);

if (FC.ADVANCED_TUNING.idleMinRpm && FC.MOTOR_CONFIG.use_dshot_telemetry) {
$('div.digitalIdlePercent').hide();
}
$('div.digitalIdlePercent').toggle(protocolConfigured && digitalProtocol && !FC.ADVANCED_TUNING.idleMinRpm || !FC.MOTOR_CONFIG.use_dshot_telemetry);

$('.escSensor').toggle(protocolConfigured && digitalProtocol);

Expand Down

0 comments on commit fba2ba1

Please sign in to comment.