mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-17 13:25:27 +03:00
Moved MAX symbol before number as it looks better
This commit is contained in:
parent
5051dd4462
commit
6dc04a257b
1 changed files with 5 additions and 5 deletions
|
@ -431,23 +431,23 @@ void osdFormatVelocityStr(char* buff, int32_t vel, bool _3D, bool _max)
|
|||
FALLTHROUGH;
|
||||
case OSD_UNIT_IMPERIAL:
|
||||
if (_max) {
|
||||
tfp_sprintf(buff, "%3d%c%c", (int)osdConvertVelocityToUnit(vel), SYM_MAX, (_3D ? SYM_3D_MPH : SYM_MPH));
|
||||
tfp_sprintf(buff, "%c%3d%c", SYM_MAX, (int)osdConvertVelocityToUnit(vel), (_3D ? SYM_3D_MPH : SYM_MPH));
|
||||
} else {
|
||||
tfp_sprintf(buff, "%3d%c", (int)osdConvertVelocityToUnit(vel), (_3D ? SYM_3D_MPH : SYM_MPH));
|
||||
}
|
||||
break;
|
||||
case OSD_UNIT_METRIC:
|
||||
if (_max) {
|
||||
tfp_sprintf(buff, "%3d%c", (int)osdConvertVelocityToUnit(vel), (_3D ? SYM_3D_KMH : SYM_KMH));
|
||||
tfp_sprintf(buff, "%c%3d%c", SYM_MAX, (int)osdConvertVelocityToUnit(vel), (_3D ? SYM_3D_KMH : SYM_KMH));
|
||||
} else {
|
||||
tfp_sprintf(buff, "%3d%c%c", (int)osdConvertVelocityToUnit(vel), SYM_MAX, (_3D ? SYM_3D_KMH : SYM_KMH));
|
||||
tfp_sprintf(buff, "%3d%c", (int)osdConvertVelocityToUnit(vel), (_3D ? SYM_3D_KMH : SYM_KMH));
|
||||
}
|
||||
break;
|
||||
case OSD_UNIT_GA:
|
||||
if (_max) {
|
||||
tfp_sprintf(buff, "%3d%c", (int)osdConvertVelocityToUnit(vel), (_3D ? SYM_3D_KT : SYM_KT));
|
||||
tfp_sprintf(buff, "%c%3d%c", SYM_MAX, (int)osdConvertVelocityToUnit(vel), (_3D ? SYM_3D_KT : SYM_KT));
|
||||
} else {
|
||||
tfp_sprintf(buff, "%3d%c%c", (int)osdConvertVelocityToUnit(vel), SYM_MAX, (_3D ? SYM_3D_KT : SYM_KT));
|
||||
tfp_sprintf(buff, "%3d%c", (int)osdConvertVelocityToUnit(vel), (_3D ? SYM_3D_KT : SYM_KT));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue