From d6b6064404f522cbc30fc7160622454e18a3ba03 Mon Sep 17 00:00:00 2001 From: Darren Lines Date: Mon, 16 Aug 2021 21:12:25 +0100 Subject: [PATCH] Added icon to VTx power --- src/main/drivers/osd_symbols.h | 1 + src/main/io/osd.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/drivers/osd_symbols.h b/src/main/drivers/osd_symbols.h index e7a4551f55..ee589a8286 100644 --- a/src/main/drivers/osd_symbols.h +++ b/src/main/drivers/osd_symbols.h @@ -56,6 +56,7 @@ #define SYM_AH_MI 0x24 // 036 Ah/mi // 0x25 // 037 ASCII % // 0x26 // 038 ASCII & +#define SYM_VTX_POWER 0x27 // 039 VTx Power // 0x28 // 040 to 062 ASCII #define SYM_AH_NM 0x3F // 063 Ah/NM // 0x40 // 064 to 095 ASCII diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 05c87dba47..317d60d8fb 100644 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -1965,9 +1965,12 @@ static bool osdDrawSingleElement(uint8_t item) vtxDeviceOsdInfo_t osdInfo; vtxCommonGetOsdInfo(vtxCommonDevice(), &osdInfo); + tfp_sprintf(buff, "%c", SYM_VTX_POWER); + displayWrite(osdDisplayPort, elemPosX, elemPosY, buff); + tfp_sprintf(buff, "%c", osdInfo.powerIndexLetter); if (isAdjustmentFunctionSelected(ADJUSTMENT_VTX_POWER_LEVEL)) TEXT_ATTRIBUTES_ADD_BLINK(elemAttr); - displayWriteWithAttr(osdDisplayPort, elemPosX, elemPosY, buff, elemAttr); + displayWriteWithAttr(osdDisplayPort, elemPosX+1, elemPosY, buff, elemAttr); return true; }