mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2025-12-06 07:12:08 +01:00
Fix RSSI bug for duplex mode and MMDVMCal
This commit is contained in:
parent
5834da83d8
commit
2b53c86277
16
ADF7021.cpp
16
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue