mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-20 14:55:15 +03:00
Merge pull request #1000 from McGiverGim/bf-fix_msp_versions
Fix some MSP versions
This commit is contained in:
commit
77b15a7d42
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
||||||
|
@ -1171,7 +1171,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
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue