Fix esc protocol tooltip for removed dshot1200 (#1689)

Fix esc protocol tooltip for removed dshot1200
10.7.0-preview
Michael Keller 2019-09-26 22:35:33 +12:00 committed by GitHub
commit 074bb46f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -5228,6 +5228,9 @@
"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>"
},
"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": {
"message": "Motor PWM speed Separated from PID speed"
},

View File

@ -516,6 +516,9 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('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.change(function () {
var escProtocolValue = parseInt($(this).val()) - 1;

View File

@ -137,7 +137,8 @@
<!-- list generated here -->
</select>
<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>
</div>
<div class="number checkboxPwm">