Merge pull request #550 from f1rmb/OPENGD77_HS

Identify OpenGD77 hotspot.
This commit is contained in:
Jonathan Naylor 2020-01-10 11:28:47 +00:00 committed by GitHub
commit 95c1bbb8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -601,6 +601,9 @@ bool CDMRNetwork::writeConfig()
case HWT_MMDVM_HS:
software = "MMDVM_MMDVM_HS";
break;
case HWT_OPENGD77_HS:
software = "MMDVM_OpenGD77_HS";
break;
default:
software = "MMDVM_Unknown";
break;

View file

@ -46,6 +46,7 @@ enum HW_TYPE {
HWT_NANO_DV,
HWT_D2RG_MMDVM_HS,
HWT_MMDVM_HS,
HWT_OPENGD77_HS,
HWT_UNKNOWN
};

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;