mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Merge branch 'master' into M17
This commit is contained in:
@@ -391,6 +391,9 @@ bool CDMRNetwork::writeConfig()
|
|||||||
case HWT_OPENGD77_HS:
|
case HWT_OPENGD77_HS:
|
||||||
software = "MMDVM_OpenGD77_HS";
|
software = "MMDVM_OpenGD77_HS";
|
||||||
break;
|
break;
|
||||||
|
case HWT_SKYBRIDGE:
|
||||||
|
software = "MMDVM_SkyBridge";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
software = "MMDVM_Unknown";
|
software = "MMDVM_Unknown";
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ enum HW_TYPE {
|
|||||||
HWT_D2RG_MMDVM_HS,
|
HWT_D2RG_MMDVM_HS,
|
||||||
HWT_MMDVM_HS,
|
HWT_MMDVM_HS,
|
||||||
HWT_OPENGD77_HS,
|
HWT_OPENGD77_HS,
|
||||||
|
HWT_SKYBRIDGE,
|
||||||
HWT_UNKNOWN
|
HWT_UNKNOWN
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ Debug=0
|
|||||||
|
|
||||||
[DMR Network]
|
[DMR Network]
|
||||||
Enable=1
|
Enable=1
|
||||||
Address=44.131.4.1
|
Address=127.0.0.1
|
||||||
Port=62031
|
Port=62031
|
||||||
Local=62032
|
Local=62032
|
||||||
Jitter=360
|
Jitter=360
|
||||||
|
|||||||
@@ -1612,6 +1612,8 @@ bool CModem::readVersion()
|
|||||||
m_hwType = HWT_MMDVM_HS;
|
m_hwType = HWT_MMDVM_HS;
|
||||||
else if (::memcmp(m_buffer + 4U, "OpenGD77_HS", 11U) == 0)
|
else if (::memcmp(m_buffer + 4U, "OpenGD77_HS", 11U) == 0)
|
||||||
m_hwType = HWT_OPENGD77_HS;
|
m_hwType = HWT_OPENGD77_HS;
|
||||||
|
else if (::memcmp(m_buffer + 4U, "SkyBridge", 9U) == 0)
|
||||||
|
m_hwType = HWT_SKYBRIDGE;
|
||||||
|
|
||||||
LogInfo("MMDVM protocol version: %u, description: %.*s", m_buffer[3U], m_length - 4U, m_buffer + 4U);
|
LogInfo("MMDVM protocol version: %u, description: %.*s", m_buffer[3U], m_length - 4U, m_buffer + 4U);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
#if defined(HAVE_LOG_H)
|
#if defined(HAVE_LOG_H)
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#else
|
#else
|
||||||
|
#define LogMessage(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__)
|
||||||
#define LogError(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__)
|
#define LogError(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__)
|
||||||
#define LogInfo(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__)
|
#define LogInfo(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user