Skip to content

Commit a8b417f

Browse files
committed
ensure correlation maximum and frame lost sync are reset for PDUs;
1 parent 4d5f7c9 commit a8b417f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

p25/P25RX.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ void P25RX::processSample(q15_t sample)
302302
case P25_DUID_PDU:
303303
DEBUG1("P25RX::samples() m_state = P25RXS_DATA");
304304
m_state = P25RXS_DATA;
305+
m_maxCorr = 0;
306+
m_lostCount = MAX_SYNC_FRAMES;
305307
break;
306308
case P25_DUID_TDULC:
307309
{

0 commit comments

Comments
 (0)