Skip to content

Commit def8d25

Browse files
authored
Merge pull request #11097 from iNavFlight/MrD_Correct-mode-display-ordering
Corrected mode display ordering
2 parents 965dfe5 + 87f6703 commit def8d25

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/main/io/osd.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,16 +2558,15 @@ static bool osdDrawSingleElement(uint8_t item)
25582558
if (FLIGHT_MODE(NAV_FW_AUTOLAND))
25592559
p = "LAND";
25602560
else
2561-
#endif
2562-
#ifdef USE_GEOZONE
2563-
if (FLIGHT_MODE(NAV_SEND_TO))
2564-
p = "GEO";
2565-
else
25662561
#endif
25672562
if (FLIGHT_MODE(FAILSAFE_MODE))
25682563
p = "!FS!";
25692564
else if (FLIGHT_MODE(MANUAL_MODE))
25702565
p = "MANU";
2566+
#ifdef USE_GEOZONE
2567+
else if (FLIGHT_MODE(NAV_SEND_TO) && !FLIGHT_MODE(NAV_WP_MODE))
2568+
p = "GEO";
2569+
#endif
25712570
else if (FLIGHT_MODE(TURTLE_MODE))
25722571
p = "TURT";
25732572
else if (FLIGHT_MODE(NAV_RTH_MODE))

src/main/telemetry/crsf.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,18 +353,19 @@ static void crsfFrameFlightMode(sbuf_t *dst)
353353
const char *flightMode = "OK";
354354
if (ARMING_FLAG(ARMED)) {
355355
flightMode = "ACRO";
356-
if (FLIGHT_MODE(FAILSAFE_MODE)) {
357-
flightMode = "!FS!";
358356
#ifdef USE_FW_AUTOLAND
359-
} else if (FLIGHT_MODE(NAV_FW_AUTOLAND)) {
357+
if (FLIGHT_MODE(NAV_FW_AUTOLAND)) {
360358
flightMode = "LAND";
359+
} else
361360
#endif
362-
#ifdef USE_GEOZONE
363-
} else if (FLIGHT_MODE(NAV_SEND_TO)) {
364-
flightMode = "GEO";
365-
#endif
361+
if (FLIGHT_MODE(FAILSAFE_MODE)) {
362+
flightMode = "!FS!";
366363
} else if (FLIGHT_MODE(MANUAL_MODE)) {
367364
flightMode = "MANU";
365+
#ifdef USE_GEOZONE
366+
} else if (FLIGHT_MODE(NAV_SEND_TO) && !FLIGHT_MODE(NAV_WP_MODE)) {
367+
flightMode = "GEO";
368+
#endif
368369
} else if (FLIGHT_MODE(TURTLE_MODE)) {
369370
flightMode = "TURT";
370371
} else if (FLIGHT_MODE(NAV_RTH_MODE)) {

0 commit comments

Comments
 (0)