Skip to content

Commit 3297073

Browse files
authored
Merge pull request #7914 from OlivierC-FR/patch-1
Re-fix for up/down arrows of the relative altitude (ESP32 radar)
2 parents 06186ee + 1b1271a commit 3297073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/io/osd_hud.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void osdHudDrawPoi(uint32_t poiDistance, int16_t poiDirection, int32_t poiAltitu
205205
if (((millis() / 1000) % 6 == 0) && poiType > 0) { // For Radar and WPs, display the difference in altitude
206206
altc = ((osd_unit_e)osdConfig()->units == OSD_UNIT_IMPERIAL) ? constrain(CENTIMETERS_TO_FEET(poiAltitude * 100), -99, 99) : constrain(poiAltitude, -99 , 99);
207207
tfp_sprintf(buff, "%3d", altc);
208-
buff[0] = (poiAltitude >= 0) ? SYM_HUD_ARROWS_U3 : SYM_HUD_ARROWS_D3;
208+
buff[0] = (poiAltitude >= 0) ? SYM_DIRECTION : SYM_DIRECTION+4;
209209
}
210210
else { // Display the distance by default
211211
if ((osd_unit_e)osdConfig()->units == OSD_UNIT_IMPERIAL) {

0 commit comments

Comments
 (0)