mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Allow half-duplex DMR for use with hotspot hardware.
This commit is contained in:
parent
a4dc96133a
commit
656be113f5
5 changed files with 67 additions and 43 deletions
|
|
@ -156,13 +156,14 @@ int CMMDVMHost::run()
|
|||
unsigned int id = m_conf.getDMRId();
|
||||
unsigned int colorCode = m_conf.getDMRColorCode();
|
||||
unsigned int timeout = m_conf.getTimeout();
|
||||
bool duplex = m_conf.getDuplex();
|
||||
|
||||
LogInfo("DMR Parameters");
|
||||
LogInfo(" Id: %u", id);
|
||||
LogInfo(" Color Code: %u", colorCode);
|
||||
LogInfo(" Timeout: %us", timeout);
|
||||
|
||||
dmr = new CDMRControl(id, colorCode, timeout, m_modem, m_dmrNetwork, m_display);
|
||||
dmr = new CDMRControl(id, colorCode, timeout, m_modem, m_dmrNetwork, m_display, duplex);
|
||||
}
|
||||
|
||||
CYSFEcho* ysf = NULL;
|
||||
|
|
@ -490,11 +491,6 @@ void CMMDVMHost::readParams()
|
|||
m_dstarEnabled = m_conf.getDStarEnabled();
|
||||
m_dmrEnabled = m_conf.getDMREnabled();
|
||||
m_ysfEnabled = m_conf.getFusionEnabled();
|
||||
|
||||
if (!m_conf.getDuplex() && m_dmrEnabled) {
|
||||
LogWarning("DMR operation disabled because system is not duplex");
|
||||
m_dmrEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CMMDVMHost::createDisplay()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue