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);
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue