mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-04 22:07:44 +00:00
Ignore any incoming YSF info messages.
This commit is contained in:
parent
a2603c8d40
commit
f9cde1565a
3 changed files with 13 additions and 1 deletions
|
|
@ -106,6 +106,10 @@ unsigned int CNetwork::readData(unsigned char* data, unsigned int length, in_add
|
|||
if (::memcmp(data, "YSFO", 4U) == 0)
|
||||
return 0U;
|
||||
|
||||
// Throw away any info messages
|
||||
if (::memcmp(data, "YSFI", 4U) == 0)
|
||||
return 0U;
|
||||
|
||||
// Handle incoming status requests
|
||||
if (::memcmp(data, "YSFS", 4U) == 0) {
|
||||
m_socket.write(m_status, 42U, address, port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue