fix position if statement to in else statement

10.5.x-maintenance
timman2er 2018-10-07 14:28:42 +02:00
parent fb440fcaed
commit 1ec991650e
1 changed files with 6 additions and 6 deletions

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