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

fix position if statement to in else statement

This commit is contained in:
timman2er 2018-10-07 14:28:42 +02:00
parent fb440fcaed
commit 1ec991650e

View file

@ -1115,12 +1115,6 @@ OSD.chooseFields = function () {
F.RTC_DATE_TIME
]);
}
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
F.MAX_ESC_TEMP,
F.MAX_ESC_RPM
]);
}
} else { // Starting with 1.39.0 OSD stats are reordered to match how they're presented on screen
OSD.constants.STATISTIC_FIELDS = [
F.RTC_DATE_TIME,
@ -1141,6 +1135,12 @@ OSD.chooseFields = function () {
F.MAX_ESC_TEMP,
F.MAX_ESC_RPM
];
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
F.MAX_ESC_TEMP,
F.MAX_ESC_RPM
]);
}
}
// Choose warnings