mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 08:45:48 +08:00
Decode and encode the System Fusion FICH.
This commit is contained in:
@@ -51,14 +51,16 @@ bool CYSFParrot::write(const unsigned char* data)
|
||||
::memcpy(m_data + m_used, data, YSF_FRAME_LENGTH_BYTES + 2U);
|
||||
m_used += YSF_FRAME_LENGTH_BYTES + 2U;
|
||||
|
||||
if (data[0U] == TAG_EOT) {
|
||||
m_timer.start();
|
||||
m_ptr = 0U;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void CYSFParrot::end()
|
||||
{
|
||||
m_timer.start();
|
||||
|
||||
m_ptr = 0U;
|
||||
}
|
||||
|
||||
void CYSFParrot::read(unsigned char* data)
|
||||
{
|
||||
assert(data != NULL);
|
||||
|
||||
Reference in New Issue
Block a user