Update ModeConv.cpp

Clean the buffer at EOT (clearing the last IMBE data).
Patch against https://github.com/juribeparada/MMDVM_CM/issues/55
This commit is contained in:
Andy Taylor 2021-02-10 08:56:51 +00:00 committed by GitHub
parent 9f2b462fb7
commit 41c16857a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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