Skip to content

Commit 1b1271a

Browse files
authored
Update osd_hud.c
Previous fix for the up and down arrows for the relative altitude (ESP32 radar) didn't really work because of an INT overflow, source of the issue was in the rer-ordering of the OSD chars
1 parent f3f0cf0 commit 1b1271a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)