mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-06 15:05:51 +00:00
Change the sampling poistion and rate for the RSSI.
This commit is contained in:
parent
eafc329cc9
commit
8c96a48b2b
3 changed files with 11 additions and 11 deletions
|
|
@ -464,7 +464,7 @@ void CDStarRX::processData(bool bit)
|
|||
}
|
||||
|
||||
#if defined(SEND_RSSI_DATA)
|
||||
// Send RSSI data every 0.5 seconds
|
||||
// Send RSSI data every second
|
||||
if (m_rssiCount == 0U) {
|
||||
uint16_t rssi = io.getRSSIValue();
|
||||
m_rxBuffer[12U] = (rssi >> 8) & 0xFFU;
|
||||
|
|
@ -475,7 +475,7 @@ void CDStarRX::processData(bool bit)
|
|||
}
|
||||
|
||||
m_rssiCount++;
|
||||
if (m_rssiCount >= 25U)
|
||||
if (m_rssiCount >= 50U)
|
||||
m_rssiCount = 0U;
|
||||
#else
|
||||
serial.writeDStarData(m_rxBuffer, DSTAR_DATA_LENGTH_BYTES);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue