mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-06 23:04:10 +00:00
Now have a valid response to the DX command :-)
This commit is contained in:
parent
64bf2108ee
commit
b71c77a9b8
5 changed files with 24 additions and 13 deletions
|
|
@ -134,15 +134,12 @@ void CNetwork::clock(unsigned int ms)
|
|||
if (length <= 0)
|
||||
return;
|
||||
|
||||
if (address.s_addr != m_address.s_addr || port != m_port) {
|
||||
LogDebug("Addr: %u != %u || Port: %u != %u", address.s_addr, m_address.s_addr, port, m_port);
|
||||
CUtils::dump("Data from unknown address/port", buffer, length);
|
||||
if (address.s_addr != m_address.s_addr || port != m_port)
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle incoming polls
|
||||
if (::memcmp(buffer, "YSFP", 4U) == 0) {
|
||||
// XXX How to handle lost polls?
|
||||
writePoll();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue