diff --git a/src/js/tabs/motors.js b/src/js/tabs/motors.js index a479ff3d5b1..da249d5b362 100644 --- a/src/js/tabs/motors.js +++ b/src/js/tabs/motors.js @@ -17,6 +17,8 @@ import { updateTabList } from "../utils/updateTabList"; import { isInt, getMixerImageSrc } from "../utils/common"; import * as d3 from 'd3'; import $ from 'jquery'; +import semver from "semver-min"; +import { API_VERSION_1_47 } from "../data_storage.js"; const motors = { previousDshotBidir: null, @@ -764,7 +766,7 @@ motors.initialize = async function (callback) { $('div.digitalIdlePercent').toggle(protocolConfigured && digitalProtocol); $('div.idleMinRpm').toggle(protocolConfigured && digitalProtocol && FC.MOTOR_CONFIG.use_dshot_telemetry); - if (FC.ADVANCED_TUNING.idleMinRpm && 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) { $('div.digitalIdlePercent').hide(); } diff --git a/src/tabs/motors.html b/src/tabs/motors.html index 0257a89f52b..42a0b0369e3 100644 --- a/src/tabs/motors.html +++ b/src/tabs/motors.html @@ -93,57 +93,45 @@