Skip to content

Commit

Permalink
Depricate minthrottle
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Oct 4, 2024
1 parent f8601c3 commit dc1aa01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/tabs/motors.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,13 +757,13 @@ motors.initialize = async function (callback) {

const rpmFeaturesVisible = digitalProtocol && dshotBidirElement.is(':checked') || $("input[name='ESC_SENSOR']").is(':checked');

$('div.minthrottle').toggle(protocolConfigured && !digitalProtocol);
$('div.minthrottle').toggle(protocolConfigured && !digitalProtocol && semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_47));
$('div.maxthrottle').toggle(protocolConfigured && !digitalProtocol);
$('div.mincommand').toggle(protocolConfigured && !digitalProtocol);
$('div.checkboxPwm').toggle(protocolConfigured && !digitalProtocol);
divUnsyncedPWMFreq.toggle(protocolConfigured && !digitalProtocol);

$('div.digitalIdlePercent').toggle(protocolConfigured && digitalProtocol);
$('div.digitalIdlePercent').toggle(protocolConfigured && (digitalProtocol || semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)));
$('div.idleMinRpm').toggle(protocolConfigured && digitalProtocol && FC.MOTOR_CONFIG.use_dshot_telemetry);

if (semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_47) && FC.ADVANCED_TUNING.idleMinRpm && FC.MOTOR_CONFIG.use_dshot_telemetry) {
Expand Down

0 comments on commit dc1aa01

Please sign in to comment.