mirror of
https://github.com/g4klx/MMDVMHost
synced 2026-02-04 22:05:41 +08:00
Clean compile(-ish), still more to do.
This commit is contained in:
@@ -174,11 +174,6 @@ void CM17Network::clock(unsigned int ms)
|
||||
return;
|
||||
}
|
||||
|
||||
if (::memcmp(buffer + 0U, "PING", 4U) == 0) {
|
||||
sendPong();
|
||||
return;
|
||||
}
|
||||
|
||||
if (::memcmp(buffer + 0U, "DISC", 4U) == 0) {
|
||||
m_timer.stop();
|
||||
m_state = M17N_NOTLINKED;
|
||||
@@ -186,6 +181,12 @@ void CM17Network::clock(unsigned int ms)
|
||||
return;
|
||||
}
|
||||
|
||||
if (::memcmp(buffer + 0U, "PING", 4U) == 0) {
|
||||
if (m_state == M17N_LINKED)
|
||||
sendPong();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_enabled)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user