Merge pull request #1267 from wind0r/fix_osd_below_1.41

MAX_G_FORCE got added after the 1.40 release
10.5.x-maintenance
Michael Keller 2019-01-09 23:09:07 +13:00 committed by GitHub
commit 6b26d38aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1174,11 +1174,11 @@ OSD.chooseFields = function () {
F.USED_MAH, F.USED_MAH,
F.MAX_ALTITUDE, F.MAX_ALTITUDE,
F.BLACKBOX, F.BLACKBOX,
F.BLACKBOX_LOG_NUMBER, F.BLACKBOX_LOG_NUMBER
F.MAX_G_FORCE
]; ];
if (semver.gte(CONFIG.apiVersion, "1.41.0")) { if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([ OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
F.MAX_G_FORCE,
F.MAX_ESC_TEMP, F.MAX_ESC_TEMP,
F.MAX_ESC_RPM, F.MAX_ESC_RPM,
F.MIN_LINK_QUALITY, F.MIN_LINK_QUALITY,