Skip to content

Commit

Permalink
Add support for MMDVM_HS_Dual_Hat
Browse files Browse the repository at this point in the history
  • Loading branch information
phl0 committed Mar 5, 2018
1 parent faa0bde commit 150dfca
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 @@ -561,6 +561,9 @@ bool CDMRNetwork::writeConfig()
case HWT_MMDVM_HS_HAT:
software = "MMDVM_MMDVM_HS_Hat";
break;
case HWT_MMDVM_HS_DUAL_HAT:
software = "MMDVM_MMDVM_HS_Dual_Hat";
break;
case HWT_NANO_HOTSPOT:
software = "MMDVM_Nano_hotSPOT";
break;
Expand Down
1 change: 1 addition & 0 deletions Defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ enum HW_TYPE {
HWT_DVMEGA,
HWT_MMDVM_ZUMSPOT,
HWT_MMDVM_HS_HAT,
HWT_MMDVM_HS_DUAL_HAT,
HWT_NANO_HOTSPOT,
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 @@ -1022,6 +1022,8 @@ bool CModem::readVersion()
m_hwType = HWT_MMDVM_ZUMSPOT;
else if (::memcmp(m_buffer + 4U, "MMDVM_HS_Hat", 12U) == 0)
m_hwType = HWT_MMDVM_HS_HAT;
else if (::memcmp(m_buffer + 4U, "MMDVM_HS_Dual_Hat", 17U) == 0)
m_hwType = HWT_MMDVM_HS_DUAL_HAT;
else if (::memcmp(m_buffer + 4U, "Nano_hotSPOT", 12U) == 0)
m_hwType = HWT_NANO_HOTSPOT;
else if (::memcmp(m_buffer + 4U, "MMDVM_HS-", 9U) == 0)
Expand Down

0 comments on commit 150dfca

Please sign in to comment.