mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
motor idle update for 4.2
This commit is contained in:
parent
ae2ef20ce2
commit
b8e0263460
2 changed files with 4 additions and 2 deletions
|
@ -737,7 +737,9 @@ TABS.motors.initialize = function (callback) {
|
|||
|
||||
$('div.digitalIdlePercent').toggle(protocolConfigured && digitalProtocol);
|
||||
|
||||
$('input[name="digitalIdlePercent"]').prop('disabled', protocolConfigured && digitalProtocol && FC.ADVANCED_TUNING.idleMinRpm && FC.MOTOR_CONFIG.use_dshot_telemetry);
|
||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
|
||||
$('input[name="digitalIdlePercent"]').prop('disabled', protocolConfigured && digitalProtocol && FC.ADVANCED_TUNING.idleMinRpm && FC.MOTOR_CONFIG.use_dshot_telemetry);
|
||||
}
|
||||
|
||||
if (FC.ADVANCED_TUNING.idleMinRpm && FC.MOTOR_CONFIG.use_dshot_telemetry) {
|
||||
const dynamicIdle = FC.ADVANCED_TUNING.idleMinRpm * 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue