Identify OpenGD77 hotspot.

This commit is contained in:
Daniel Caujolle-Bert
2020-01-08 10:58:41 +01:00
parent 3fa72d853d
commit 5686942519
3 changed files with 7 additions and 1 deletions

View File

@@ -1398,6 +1398,8 @@ bool CModem::readVersion()
m_hwType = HWT_D2RG_MMDVM_HS;
else if (::memcmp(m_buffer + 4U, "MMDVM_HS-", 9U) == 0)
m_hwType = HWT_MMDVM_HS;
else if (::memcmp(m_buffer + 4U, "OpenGD77_HS", 11U) == 0)
m_hwType = HWT_OPENGD77_HS;
LogInfo("MMDVM protocol version: %u, description: %.*s", m_buffer[3U], m_length - 4U, m_buffer + 4U);
return true;
@@ -1839,4 +1841,4 @@ CModem* CModem::createModem(const std::string& port, bool duplex, bool rxInvert,
return new CNullModem(port, duplex, rxInvert, txInvert, pttInvert, txDelay, dmrDelay, trace, debug);
else
return new CModem(port, duplex, rxInvert, txInvert, pttInvert, txDelay, dmrDelay, trace, debug);
}
}