Fix RSSI bug for duplex mode and MMDVMCal

This commit is contained in:
Andy CA6JAU 2018-10-08 00:10:42 -03:00
parent 5834da83d8
commit 2b53c86277

View file

@ -129,11 +129,13 @@ uint16_t CIO::readRSSI()
SDATA_pin(LOW); SDATA_pin(LOW);
if (!m_duplex)
SLE_pin(HIGH);
#if defined(DUPLEX) #if defined(DUPLEX)
if (m_duplex) if (m_duplex || m_calState == STATE_RSSICAL)
SLE2_pin(HIGH); SLE2_pin(HIGH);
else
SLE_pin(HIGH);
#else
SLE_pin(HIGH);
#endif #endif
dlybit(); dlybit();
@ -151,11 +153,13 @@ uint16_t CIO::readRSSI()
} }
if (!m_duplex)
SLE_pin(LOW);
#if defined(DUPLEX) #if defined(DUPLEX)
if (m_duplex) if (m_duplex || m_calState == STATE_RSSICAL)
SLE2_pin(LOW); SLE2_pin(LOW);
else
SLE_pin(LOW);
#else
SLE_pin(LOW);
#endif #endif
// Process RSSI code // Process RSSI code