mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
fix order for OSD display
This commit is contained in:
parent
ef17d7fc31
commit
88f91681e7
1 changed files with 10 additions and 10 deletions
|
@ -1462,16 +1462,6 @@ static void osdShowStats(uint16_t endBatteryVoltage)
|
||||||
osdDisplayStatisticLabel(top++, "MAX SPEED", buff);
|
osdDisplayStatisticLabel(top++, "MAX SPEED", buff);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (osdStatGetState(OSD_STAT_MAX_ESC_TEMP)) {
|
|
||||||
tfp_sprintf(buff, "%3d%c", osdConvertTemperatureToSelectedUnit(stats.max_esc_temp * 10) / 10, osdGetTemperatureSymbolForSelectedUnit());
|
|
||||||
osdDisplayStatisticLabel(top++, "MAX ESC TEMP", buff);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (osdStatGetState(OSD_STAT_MAX_ESC_RPM)) {
|
|
||||||
itoa(stats.max_esc_rpm, buff, 10);
|
|
||||||
osdDisplayStatisticLabel(top++, "MAX ESC RPM", buff);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (osdStatGetState(OSD_STAT_MAX_DISTANCE)) {
|
if (osdStatGetState(OSD_STAT_MAX_DISTANCE)) {
|
||||||
tfp_sprintf(buff, "%d%c", osdGetMetersToSelectedUnit(stats.max_distance), osdGetMetersToSelectedUnitSymbol());
|
tfp_sprintf(buff, "%d%c", osdGetMetersToSelectedUnit(stats.max_distance), osdGetMetersToSelectedUnitSymbol());
|
||||||
osdDisplayStatisticLabel(top++, "MAX DISTANCE", buff);
|
osdDisplayStatisticLabel(top++, "MAX DISTANCE", buff);
|
||||||
|
@ -1533,6 +1523,16 @@ static void osdShowStats(uint16_t endBatteryVoltage)
|
||||||
osdDisplayStatisticLabel(top++, "MAX G-FORCE", buff);
|
osdDisplayStatisticLabel(top++, "MAX G-FORCE", buff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (osdStatGetState(OSD_STAT_MAX_ESC_TEMP)) {
|
||||||
|
tfp_sprintf(buff, "%3d%c", osdConvertTemperatureToSelectedUnit(stats.max_esc_temp * 10) / 10, osdGetTemperatureSymbolForSelectedUnit());
|
||||||
|
osdDisplayStatisticLabel(top++, "MAX ESC TEMP", buff);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (osdStatGetState(OSD_STAT_MAX_ESC_RPM)) {
|
||||||
|
itoa(stats.max_esc_rpm, buff, 10);
|
||||||
|
osdDisplayStatisticLabel(top++, "MAX ESC RPM", buff);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void osdShowArmed(void)
|
static void osdShowArmed(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue