Ignore any incoming YSF options messages.

This commit is contained in:
Jonathan Naylor 2020-09-08 10:10:25 +01:00
parent f71c8ce7bc
commit 75652b04ae

View file

@ -140,9 +140,8 @@ void CYSFNetwork::clock(unsigned int ms)
return;
}
// Ignore incoming polls
if (::memcmp(buffer, "YSFP", 4U) == 0)
return;
if (m_debug)
CUtils::dump(1U, "YSF Network Data Received", buffer, length);
// Invalid packet type?
if (::memcmp(buffer, "YSFD", 4U) != 0)
@ -151,9 +150,6 @@ void CYSFNetwork::clock(unsigned int ms)
if (!m_enabled)
return;
if (m_debug)
CUtils::dump(1U, "YSF Network Data Received", buffer, length);
if (::memcmp(m_tag, " ", YSF_CALLSIGN_LENGTH) == 0) {
::memcpy(m_tag, buffer + 4U, YSF_CALLSIGN_LENGTH);
} else {