mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 22:35:17 +03:00
Fix esc protocol tooltip for removed dshot1200
This commit is contained in:
parent
2395c7a216
commit
9a74087762
3 changed files with 8 additions and 1 deletions
|
@ -5219,6 +5219,9 @@
|
||||||
"configurationEscProtocolHelp": {
|
"configurationEscProtocolHelp": {
|
||||||
"message": "Select your motor protocol. <br>Make sure to verify the protocol is supported by your ESC, this information should be on the makers website. <br> <b>Be carefull using DSHOT900 and DSHOT1200 as not many ESC's support it!</b>"
|
"message": "Select your motor protocol. <br>Make sure to verify the protocol is supported by your ESC, this information should be on the makers website. <br> <b>Be carefull using DSHOT900 and DSHOT1200 as not many ESC's support it!</b>"
|
||||||
},
|
},
|
||||||
|
"configurationEscProtocolHelpNoDSHOT1200": {
|
||||||
|
"message": "Select your motor protocol. <br>Make sure to verify the protocol is supported by your ESC, this information should be on the makers website."
|
||||||
|
},
|
||||||
"configurationunsyndePwm": {
|
"configurationunsyndePwm": {
|
||||||
"message": "Motor PWM speed Separated from PID speed"
|
"message": "Motor PWM speed Separated from PID speed"
|
||||||
},
|
},
|
||||||
|
|
|
@ -516,6 +516,9 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
$('input[name="motorPoles"]').val(MOTOR_CONFIG.motor_poles);
|
$('input[name="motorPoles"]').val(MOTOR_CONFIG.motor_poles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#escProtocolTooltip').toggle(semver.lt(CONFIG.apiVersion, "1.42.0"));
|
||||||
|
$('#escProtocolTooltipNoDSHOT1200').toggle(semver.gte(CONFIG.apiVersion, "1.42.0"));
|
||||||
|
|
||||||
esc_protocol_e.val(PID_ADVANCED_CONFIG.fast_pwm_protocol + 1);
|
esc_protocol_e.val(PID_ADVANCED_CONFIG.fast_pwm_protocol + 1);
|
||||||
esc_protocol_e.change(function () {
|
esc_protocol_e.change(function () {
|
||||||
var escProtocolValue = parseInt($(this).val()) - 1;
|
var escProtocolValue = parseInt($(this).val()) - 1;
|
||||||
|
|
|
@ -137,7 +137,8 @@
|
||||||
<!-- list generated here -->
|
<!-- list generated here -->
|
||||||
</select>
|
</select>
|
||||||
<span i18n="configurationEscProtocol"></span>
|
<span i18n="configurationEscProtocol"></span>
|
||||||
<div class="helpicon cf_tip" i18n_title="configurationEscProtocolHelp"></div>
|
<div id="escProtocolTooltip" class="helpicon cf_tip" i18n_title="configurationEscProtocolHelp"></div>
|
||||||
|
<div id="escProtocolTooltipNoDSHOT1200" class="helpicon cf_tip" i18n_title="configurationEscProtocolHelpNoDSHOT1200"></div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="number checkboxPwm">
|
<div class="number checkboxPwm">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue