Skip to content

Commit

Permalink
Support for D2RG MMDVM_HS
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed May 30, 2019
1 parent 99c8b23 commit 0b9c1b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DMRNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ bool CDMRNetwork::writeConfig()
case HWT_NANO_DV:
software = "MMDVM_Nano_DV";
break;
case HWT_D2RG_MMDVM_HS:
software = "MMDVM_D2RG_MMDVM_HS";
break;
case HWT_MMDVM_HS:
software = "MMDVM_MMDVM_HS";
break;
Expand Down
1 change: 1 addition & 0 deletions Defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ enum HW_TYPE {
HWT_MMDVM_HS_DUAL_HAT,
HWT_NANO_HOTSPOT,
HWT_NANO_DV,
HWT_D2RG_MMDVM_HS,
HWT_MMDVM_HS,
HWT_UNKNOWN
};
Expand Down
2 changes: 2 additions & 0 deletions Modem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,8 @@ bool CModem::readVersion()
m_hwType = HWT_NANO_HOTSPOT;
else if (::memcmp(m_buffer + 4U, "Nano_DV", 7U) == 0)
m_hwType = HWT_NANO_DV;
else if (::memcmp(m_buffer + 4U, "D2RG_MMDVM_HS", 13U) == 0)
m_hwType = HWT_D2RG_MMDVM_HS;
else if (::memcmp(m_buffer + 4U, "MMDVM_HS-", 9U) == 0)
m_hwType = HWT_MMDVM_HS;

Expand Down

0 comments on commit 0b9c1b1

Please sign in to comment.