diff --git a/src/main/msp/msp.c b/src/main/msp/msp.c index 1bb55a08bd..210557ca03 100644 --- a/src/main/msp/msp.c +++ b/src/main/msp/msp.c @@ -809,13 +809,6 @@ static bool mspCommonProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProce sbufWriteU8(dst, 0); #endif // USE_OSD_STICK_OVERLAY - // API >= 1.42 -#ifdef USE_RX_LINK_QUALITY_INFO - sbufWriteU8(dst, osdConfig()->link_quality_alarm); -#else - sbufWriteU8(dst, 0); -#endif // USE_RX_LINK_QUALITY_INFO - #endif // USE_OSD break; } @@ -2771,23 +2764,14 @@ static mspResult_e mspCommonProcessInCommand(uint8_t cmdMSP, sbuf_t *src, mspPos if (sbufBytesRemaining(src) >= 1) { // API >= 1.41 // OSD stick overlay mode + #ifdef USE_OSD_STICK_OVERLAY osdConfigMutable()->overlay_radio_mode = sbufReadU8(src); #else sbufReadU8(src); #endif // USE_OSD_STICK_OVERLAY - } - if (sbufBytesRemaining(src) >= 1) { - // API >= 1.42 - // Link Quality alarm -#ifdef USE_RX_LINK_QUALITY_INFO - osdConfigMutable()->link_quality_alarm = sbufReadU8(src); -#else - sbufReadU8(src); -#endif // USE_RX_LINK_QUALITY_INFO } - #endif } else if ((int8_t)addr == -2) { #if defined(USE_OSD) diff --git a/src/main/osd/osd.h b/src/main/osd/osd.h index 8e569153b7..ce5258e713 100644 --- a/src/main/osd/osd.h +++ b/src/main/osd/osd.h @@ -224,7 +224,6 @@ typedef struct osdConfig_s { uint16_t cap_alarm; uint16_t alt_alarm; uint8_t rssi_alarm; - uint8_t link_quality_alarm; osd_unit_e units; @@ -241,6 +240,7 @@ typedef struct osdConfig_s { uint8_t ahInvert; // invert the artificial horizon uint8_t osdProfileIndex; uint8_t overlay_radio_mode; + uint8_t link_quality_alarm; } osdConfig_t; PG_DECLARE(osdConfig_t, osdConfig);