Clean compile(-ish), still more to do.

This commit is contained in:
Jonathan Naylor
2020-10-17 16:47:19 +01:00
parent 8946038e0e
commit 9a72e95ec0
6 changed files with 41 additions and 317 deletions

View File

@@ -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;