mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-07 23:45:07 +00:00
Remove any DC offset from before any further filtering takes place.
This commit is contained in:
parent
9d1ebc0f8f
commit
8540964097
9 changed files with 23 additions and 25 deletions
|
|
@ -104,7 +104,7 @@ bool CDMRSlotRX::processSample(q15_t sample, uint16_t rssi)
|
|||
m_rssi[m_dataPtr] = rssi;
|
||||
|
||||
m_bitBuffer[m_bitPtr] <<= 1;
|
||||
if (sample < m_dcLevel)
|
||||
if (sample < 0)
|
||||
m_bitBuffer[m_bitPtr] |= 0x01U;
|
||||
|
||||
if (m_state == DMRRXS_NONE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue