Remove annoying and incorrect error messages.

This commit is contained in:
Jonathan Naylor
2021-02-03 00:24:49 +00:00
parent 74208ed8d5
commit e156e2478a
2 changed files with 63 additions and 65 deletions

View File

@@ -281,19 +281,18 @@ void CMMDVMNetworkOld::clock(unsigned int ms)
return;
}
if (length == 0)
return;
if (!CUDPSocket::match(m_rptAddr, address)) {
LogMessage("%s Network, packet received from an invalid source", m_name);
return;
}
if (m_debug && length > 0)
CUtils::dump(1U, "Network Received", m_buffer, length);
if (length > 0) {
if (::memcmp(m_buffer, "DMRD", 4U) == 0) {
if (m_debug)
CUtils::dump(1U, "Network Received", m_buffer, length);
if (::memcmp(m_buffer, "DMRD", 4U) == 0) {
unsigned char len = length;
m_rxData.addData(&len, 1U);
m_rxData.addData(m_buffer, len);
@@ -364,4 +363,3 @@ void CMMDVMNetworkOld::clock(unsigned int ms)
CUtils::dump("Unknown packet from the master", m_buffer, length);
}
}
}

View File

@@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20210202";
const char* VERSION = "20210203";
#endif