From 2b53c86277c2d5f530ff39079e7a9369a39e1e5e Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Mon, 8 Oct 2018 00:10:42 -0300 Subject: [PATCH] Fix RSSI bug for duplex mode and MMDVMCal --- ADF7021.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ADF7021.cpp b/ADF7021.cpp index 0625690..1f78a23 100644 --- a/ADF7021.cpp +++ b/ADF7021.cpp @@ -129,11 +129,13 @@ uint16_t CIO::readRSSI() SDATA_pin(LOW); - if (!m_duplex) - SLE_pin(HIGH); #if defined(DUPLEX) - if (m_duplex) + if (m_duplex || m_calState == STATE_RSSICAL) SLE2_pin(HIGH); + else + SLE_pin(HIGH); +#else + SLE_pin(HIGH); #endif dlybit(); @@ -151,11 +153,13 @@ uint16_t CIO::readRSSI() } - if (!m_duplex) - SLE_pin(LOW); #if defined(DUPLEX) - if (m_duplex) + if (m_duplex || m_calState == STATE_RSSICAL) SLE2_pin(LOW); + else + SLE_pin(LOW); +#else + SLE_pin(LOW); #endif // Process RSSI code