mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:27:09 +08:00
Ignore any incoming YSF options messages.
This commit is contained in:
@@ -140,9 +140,8 @@ void CYSFNetwork::clock(unsigned int ms)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignore incoming polls
|
if (m_debug)
|
||||||
if (::memcmp(buffer, "YSFP", 4U) == 0)
|
CUtils::dump(1U, "YSF Network Data Received", buffer, length);
|
||||||
return;
|
|
||||||
|
|
||||||
// Invalid packet type?
|
// Invalid packet type?
|
||||||
if (::memcmp(buffer, "YSFD", 4U) != 0)
|
if (::memcmp(buffer, "YSFD", 4U) != 0)
|
||||||
@@ -151,9 +150,6 @@ void CYSFNetwork::clock(unsigned int ms)
|
|||||||
if (!m_enabled)
|
if (!m_enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_debug)
|
|
||||||
CUtils::dump(1U, "YSF Network Data Received", buffer, length);
|
|
||||||
|
|
||||||
if (::memcmp(m_tag, " ", YSF_CALLSIGN_LENGTH) == 0) {
|
if (::memcmp(m_tag, " ", YSF_CALLSIGN_LENGTH) == 0) {
|
||||||
::memcpy(m_tag, buffer + 4U, YSF_CALLSIGN_LENGTH);
|
::memcpy(m_tag, buffer + 4U, YSF_CALLSIGN_LENGTH);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user