1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Fix some MSP versions

This commit is contained in:
Miguel Angel Mulero Martinez 2018-04-04 16:21:49 +02:00
parent 51b5fa883d
commit eba1a0fbb5

View file

@ -532,7 +532,7 @@ OSD.constants = {
default_position: 193, default_position: 193,
draw_order: 40, draw_order: 40,
positionable: function() { 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) 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, default_position: 194,
draw_order: 10, draw_order: 10,
positionable: function() { positionable: function() {
return semver.gte(CONFIG.apiVersion, "1.38.0") ? true : false; return semver.gte(CONFIG.apiVersion, "1.39.0") ? true : false;
}, },
preview: function() { preview: function() {
@ -573,7 +573,7 @@ OSD.constants = {
default_position: 194, default_position: 194,
draw_order: 50, draw_order: 50,
positionable: function() { 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) { preview: function(fieldPosition) {
@ -1166,7 +1166,7 @@ OSD.chooseFields = function () {
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([ OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
F.RTC_DATE_TIME 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([ OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
F.STAT_BATTERY F.STAT_BATTERY
]); ]);