mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-21 05:25:40 +08:00
Respond to MMDVM closing down
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user