mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2025-12-06 07:12:08 +01:00
Fix RSSI bug in duplex mode
This commit is contained in:
parent
03f276db2c
commit
5834da83d8
16
ADF7021.cpp
16
ADF7021.cpp
|
|
@ -128,7 +128,14 @@ uint16_t CIO::readRSSI()
|
|||
}
|
||||
|
||||
SDATA_pin(LOW);
|
||||
SLE_pin(HIGH);
|
||||
|
||||
if (!m_duplex)
|
||||
SLE_pin(HIGH);
|
||||
#if defined(DUPLEX)
|
||||
if (m_duplex)
|
||||
SLE2_pin(HIGH);
|
||||
#endif
|
||||
|
||||
dlybit();
|
||||
|
||||
// Read SREAD pin
|
||||
|
|
@ -144,7 +151,12 @@ uint16_t CIO::readRSSI()
|
|||
|
||||
}
|
||||
|
||||
SLE_pin(LOW);
|
||||
if (!m_duplex)
|
||||
SLE_pin(LOW);
|
||||
#if defined(DUPLEX)
|
||||
if (m_duplex)
|
||||
SLE2_pin(LOW);
|
||||
#endif
|
||||
|
||||
// Process RSSI code
|
||||
RB_code = RB_word & 0x7f;
|
||||
|
|
|
|||
Loading…
Reference in a new issue