From 6297969a5e73fc3718c4f3de2d5d39fdd1756ffa Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Thu, 1 Jun 2017 11:40:57 +0100 Subject: [PATCH] Use the volts symbol for voltages in OSD --- src/main/io/osd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/io/osd.c b/src/main/io/osd.c index fe9bdf880..c26691557 100755 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -214,7 +214,7 @@ static void osdDrawSingleElement(uint8_t item) case OSD_MAIN_BATT_VOLTAGE: buff[0] = osdGetBatterySymbol(osdGetBatteryAverageCellVoltage()); - tfp_sprintf(buff + 1, "%d.%1dV", getBatteryVoltage() / 10, getBatteryVoltage() % 10); + tfp_sprintf(buff + 1, "%d.%1d%c", getBatteryVoltage() / 10, getBatteryVoltage() % 10, SYM_VOLT); break; case OSD_CURRENT_DRAW: @@ -463,7 +463,7 @@ static void osdDrawSingleElement(uint8_t item) { const int cellV = osdGetBatteryAverageCellVoltage(); buff[0] = osdGetBatterySymbol(cellV); - tfp_sprintf(buff + 1, "%d.%02dV", cellV / 100, cellV % 100); + tfp_sprintf(buff + 1, "%d.%02d%c", cellV / 100, cellV % 100, SYM_VOLT); break; } @@ -845,12 +845,12 @@ static void osdShowStats(void) } if (osdConfig()->enabled_stats[OSD_STAT_MIN_BATTERY]) { - tfp_sprintf(buff, "%d.%1dV", stats.min_voltage / 10, stats.min_voltage % 10); + tfp_sprintf(buff, "%d.%1d%c", stats.min_voltage / 10, stats.min_voltage % 10, SYM_VOLT); osdDisplayStatisticLabel(top++, "MIN BATTERY", buff); } if (osdConfig()->enabled_stats[OSD_STAT_END_BATTERY]) { - tfp_sprintf(buff, "%d.%1dV", getBatteryVoltage() / 10, getBatteryVoltage() % 10); + tfp_sprintf(buff, "%d.%1d%c", getBatteryVoltage() / 10, getBatteryVoltage() % 10, SYM_VOLT); osdDisplayStatisticLabel(top++, "END BATTERY", buff); } -- 2.11.4.GIT