mirror of https://github.com/ShaYmez/MMDVM_CM.git
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:
parent
9f2b462fb7
commit
41c16857a1
|
@ -247,6 +247,10 @@ unsigned int CModeConv::getYSF(unsigned char* data)
|
||||||
m_YSF.getData(tag, 1U);
|
m_YSF.getData(tag, 1U);
|
||||||
m_YSF.getData(data, 11U);
|
m_YSF.getData(data, 11U);
|
||||||
m_ysfN -= 1U;
|
m_ysfN -= 1U;
|
||||||
|
if(tag[0U] == TAG_EOT) {
|
||||||
|
m_YSF.clear();
|
||||||
|
m_ysfN = 0;
|
||||||
|
}
|
||||||
return tag[0U];
|
return tag[0U];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue