From 6dc04a257be3a98d4e3c80450018afa7435f55bf Mon Sep 17 00:00:00 2001 From: Darren Lines Date: Thu, 19 Aug 2021 17:47:06 +0100 Subject: [PATCH] Moved MAX symbol before number as it looks better --- src/main/io/osd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/io/osd.c b/src/main/io/osd.c index f67242565..52aa9e336 100644 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -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; } -- 2.11.4.GIT