From 844e0619e21dde9ace9b8e5fc2b7a4bf694cfdc2 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Mon, 11 Jul 2022 15:35:59 +0200 Subject: [PATCH] Fixed bug in check for M17 phase inversion causing MD3x0 UHF not to demodulate the signal anymore --- openrtx/src/rtx/OpMode_M17.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openrtx/src/rtx/OpMode_M17.cpp b/openrtx/src/rtx/OpMode_M17.cpp index 2eaf572e..11f65e5c 100644 --- a/openrtx/src/rtx/OpMode_M17.cpp +++ b/openrtx/src/rtx/OpMode_M17.cpp @@ -71,7 +71,10 @@ void OpMode_M17::update(rtxStatus_t *const status, const bool newCfg) // Force inversion of RX phase for MD-3x0 VHF and MD-UV3x0 radios #if defined(PLATFORM_MD3x0) || defined(PLATFORM_MDUV3x0) const hwInfo_t* hwinfo = platform_getHwInfo(); - status->invertRxPhase |= hwinfo->vhf_band; + if(hwinfo->vhf_band == 1) + status->invertRxPhase = true; + else + status->invertRxPhase = false; #endif // Main FSM logic