Merge pull request #710 from Harpalyke/missing_configurable_warnings_prevent_saving_alarms

Fix for saving alarms in osd tab on Betaflight 3.2.2
10.3.x-maintenance
Michael Keller 2017-11-05 06:25:37 +13:00 committed by GitHub
commit f723af3b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -926,7 +926,7 @@ OSD.msp = {
result.push16(0);
}
result.push16(OSD.data.alarms.alt.value);
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
var warningFlags = 0;
for (var i = 0; i < OSD.constants.WARNINGS.length; i++) {
if (OSD.data.warnings[i].enabled) {