1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Merge pull request #1000 from McGiverGim/bf-fix_msp_versions

Fix some MSP versions
This commit is contained in:
Michael Keller 2018-04-05 09:36:03 +12:00 committed by GitHub
commit 77b15a7d42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -532,7 +532,7 @@ OSD.constants = {
default_position: 193,
draw_order: 40,
positionable: function() {
return semver.gte(CONFIG.apiVersion, "1.38.0") ? true : false;
return semver.gte(CONFIG.apiVersion, "1.39.0") ? true : false;
},
preview: FONT.symbol(SYM.AH_CENTER_LINE) + FONT.symbol(SYM.AH_CENTER) + FONT.symbol(SYM.AH_CENTER_LINE_RIGHT)
},
@ -542,7 +542,7 @@ OSD.constants = {
default_position: 194,
draw_order: 10,
positionable: function() {
return semver.gte(CONFIG.apiVersion, "1.38.0") ? true : false;
return semver.gte(CONFIG.apiVersion, "1.39.0") ? true : false;
},
preview: function() {
@ -573,7 +573,7 @@ OSD.constants = {
default_position: 194,
draw_order: 50,
positionable: function() {
return semver.gte(CONFIG.apiVersion, "1.38.0") ? true : false;
return semver.gte(CONFIG.apiVersion, "1.39.0") ? true : false;
},
preview: function(fieldPosition) {
@ -1171,7 +1171,7 @@ OSD.chooseFields = function () {
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
F.RTC_DATE_TIME
]);
if (semver.gte(CONFIG.apiVersion, "1.38.0")) {
if (semver.gte(CONFIG.apiVersion, "1.39.0")) {
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
F.STAT_BATTERY
]);