Skip to content

Commit

Permalink
Remove the debugging statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Dec 6, 2023
1 parent b18aeb5 commit 5e4100e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
10 changes: 1 addition & 9 deletions M17Control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,10 @@ void CM17Control::writeNetwork()
if (!exists)
return;

if (!m_enabled) {
LogMessage("M17 not enabled");
if (!m_enabled)
return;
}

if (m_rfState != RS_RF_LISTENING && m_rfState != RS_RF_LATE_ENTRY && m_netState == RS_NET_IDLE) {
LogMessage("M17 status is incorrect %d,%d", m_rfState, m_netState);
m_network->reset();
return;
}
Expand All @@ -558,7 +555,6 @@ void CM17Control::writeNetwork()

unsigned char type = lsf.getEncryptionType();
if (type != M17_ENCRYPTION_TYPE_NONE) {
LogMessage("M17 encryption rejection");
m_network->reset();
return;
}
Expand Down Expand Up @@ -623,8 +619,6 @@ void CM17Control::writeNetwork()
decorrelator(temp, start + 2U);

writeQueueNet(start);
} else {
LogMessage("M17 in an odd state 1 %d", m_netState);
}

if (m_netState == RS_NET_AUDIO || m_netState == RS_NET_DATA_AUDIO) {
Expand Down Expand Up @@ -737,8 +731,6 @@ void CM17Control::writeNetwork()

writeEndNet();
}
} else {
LogMessage("M17 in an odd state 2 %d", m_netState);
}
}

Expand Down
8 changes: 2 additions & 6 deletions M17Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ void CM17Network::clock(unsigned int ms)
if (m_debug)
CUtils::dump(1U, "M17 Network Received", buffer, length);

if (!m_enabled) {
LogMessage("M17 Network not enabled");
if (!m_enabled)
return;
}

if (::memcmp(buffer + 0U, "PING", 4U) == 0)
return;
Expand All @@ -150,10 +148,8 @@ void CM17Network::clock(unsigned int ms)
if (m_inId == 0U) {
m_inId = id;
} else {
if (id != m_inId) {
LogMessage("M17 Network id rejection");
if (id != m_inId)
return;
}
}

unsigned char c = length - 6U;
Expand Down

0 comments on commit 5e4100e

Please sign in to comment.