From 00d3f2217a89caeb8048f6ac0fc80fc23a4f4c05 Mon Sep 17 00:00:00 2001 From: jflyper Date: Fri, 17 Aug 2018 23:31:03 +0900 Subject: [PATCH] GPS RESCUE has display precedence over other modes except FS --- src/main/io/osd.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 2558627059..2d5f0da01e 100644 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -589,14 +589,21 @@ static bool osdDrawSingleElement(uint8_t item) case OSD_FLYMODE: { + // Note that flight mode display has precedence in what to display. + // 1. FS + // 2. GPS RESCUE + // 3. ANGLE, HORIZON, ACRO TRAINER + // 4. AIR + // 5. ACRO + if (FLIGHT_MODE(FAILSAFE_MODE)) { strcpy(buff, "!FS!"); + } else if (FLIGHT_MODE(GPS_RESCUE_MODE)) { + strcpy(buff, "RESC"); } else if (FLIGHT_MODE(ANGLE_MODE)) { strcpy(buff, "STAB"); } else if (FLIGHT_MODE(HORIZON_MODE)) { strcpy(buff, "HOR "); - } else if (FLIGHT_MODE(GPS_RESCUE_MODE)) { - strcpy(buff, "RESC"); } else if (IS_RC_MODE_ACTIVE(BOXACROTRAINER)) { strcpy(buff, "ATRN"); } else if (isAirmodeActive()) {