Fix RSSI bug in duplex mode

This commit is contained in:
Andy CA6JAU 2018-10-07 23:55:52 -03:00
parent 03f276db2c
commit 5834da83d8

View file

@ -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;