From 00d9b0bb50189b23c1a2a8a0fc041f9d5f557cc5 Mon Sep 17 00:00:00 2001 From: Krzysztof Matula Date: Wed, 17 Apr 2019 22:37:26 +0200 Subject: [PATCH] OSD: use nice AMP symbol in post flight stats instead of ordinary "A" --- src/main/osd/osd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/osd/osd.c b/src/main/osd/osd.c index c23538a472..1644329a6b 100644 --- a/src/main/osd/osd.c +++ b/src/main/osd/osd.c @@ -545,8 +545,7 @@ static void osdShowStats(uint16_t endBatteryVoltage) if (batteryConfig()->currentMeterSource != CURRENT_METER_NONE) { if (osdStatGetState(OSD_STAT_MAX_CURRENT)) { - itoa(stats.max_current, buff, 10); - strcat(buff, "A"); + tfp_sprintf(buff, "%d%c", stats.max_current, SYM_AMP); osdDisplayStatisticLabel(top++, "MAX CURRENT", buff); }