From 41c16857a17234fca8ce36b9e0a3ce1d591d6017 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Wed, 10 Feb 2021 08:56:51 +0000 Subject: [PATCH] Update ModeConv.cpp Clean the buffer at EOT (clearing the last IMBE data). Patch against https://github.com/juribeparada/MMDVM_CM/issues/55 --- YSF2P25/ModeConv.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/YSF2P25/ModeConv.cpp b/YSF2P25/ModeConv.cpp index 3926108..8553cd0 100644 --- a/YSF2P25/ModeConv.cpp +++ b/YSF2P25/ModeConv.cpp @@ -247,6 +247,10 @@ unsigned int CModeConv::getYSF(unsigned char* data) m_YSF.getData(tag, 1U); m_YSF.getData(data, 11U); m_ysfN -= 1U; + if(tag[0U] == TAG_EOT) { + m_YSF.clear(); + m_ysfN = 0; + } return tag[0U]; } }