mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-03-10 07:03:55 +01:00
Respond to MMDVM closing down
This commit is contained in:
parent
4c64d3a8f7
commit
706d30303e
|
|
@ -265,7 +265,6 @@ void CMMDVMNetwork::close()
|
|||
|
||||
m_socket.write(buffer, HOMEBREW_DATA_PACKET_LENGTH, m_rptAddress, m_rptPort);
|
||||
m_socket.close();
|
||||
|
||||
}
|
||||
|
||||
void CMMDVMNetwork::clock(unsigned int ms)
|
||||
|
|
@ -313,6 +312,8 @@ void CMMDVMNetwork::clock(unsigned int ms)
|
|||
::memcpy(ack + 0U, "RPTACK", 6U);
|
||||
::memcpy(ack + 6U, m_netId, 4U);
|
||||
m_socket.write(ack, 10U, m_rptAddress, m_rptPort);
|
||||
} else if (::memcmp(m_buffer, "RPTCL", 5U) == 0) {
|
||||
::LogMessage("DMR, MMDVM is restarting");
|
||||
} else if (::memcmp(m_buffer, "RPTC", 4U) == 0) {
|
||||
m_configLen = length - 8U;
|
||||
m_configData = new unsigned char[m_configLen];
|
||||
|
|
|
|||
Loading…
Reference in a new issue