Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: betaflight/betaflight-configurator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 93e8dc4c48ba24294d52ee7254c26aa2ec24f526
Choose a base ref
..
head repository: betaflight/betaflight-configurator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c926e5c0ef179ce139308f89cb3a20a51fdf3049
Choose a head ref
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/js/tabs/motors.js
9 changes: 7 additions & 2 deletions src/js/tabs/motors.js
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ import FC from "../fc";
import MSP from "../msp";
import { mixerList } from "../model";
import MSPCodes from "../msp/MSPCodes";
import { API_VERSION_1_42, API_VERSION_1_44 } from "../data_storage";
import { API_VERSION_1_42, API_VERSION_1_44, API_VERSION_1_46 } from "../data_storage";
import EscProtocols from "../utils/EscProtocols";
import { updateTabList } from "../utils/updateTabList";
import { isInt, getMixerImageSrc } from "../utils/common";
@@ -777,7 +777,12 @@ motors.initialize = async function (callback) {
}

if (FC.ADVANCED_TUNING.idleMinRpm && FC.MOTOR_CONFIG.use_dshot_telemetry) {
$('div.digitalIdlePercent').hide();
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) {
$('div.digitalIdlePercent').hide();
} else {
const dynamicIdle = FC.ADVANCED_TUNING.idleMinRpm * 100;
$('span.digitalIdlePercentDisabled').text(i18n.getMessage('configurationDigitalIdlePercentDisabled', { dynamicIdle }));
}
} else {
$('span.digitalIdlePercentDisabled').text(i18n.getMessage('configurationDigitalIdlePercent'));
}