mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Add correct LICH direction to match Icom repeaters.
This commit is contained in:
@@ -227,6 +227,7 @@ bool CNXDNControl::processVoice(unsigned char usc, unsigned char option, unsigne
|
|||||||
lich.setDirection(m_remoteGateway || !m_duplex ? NXDN_LICH_DIRECTION_INBOUND : NXDN_LICH_DIRECTION_OUTBOUND);
|
lich.setDirection(m_remoteGateway || !m_duplex ? NXDN_LICH_DIRECTION_INBOUND : NXDN_LICH_DIRECTION_OUTBOUND);
|
||||||
lich.encode(data + 2U);
|
lich.encode(data + 2U);
|
||||||
|
|
||||||
|
lich.setDirection(NXDN_LICH_DIRECTION_INBOUND);
|
||||||
netData[0U] = lich.getRaw();
|
netData[0U] = lich.getRaw();
|
||||||
|
|
||||||
CNXDNSACCH sacch;
|
CNXDNSACCH sacch;
|
||||||
@@ -402,6 +403,7 @@ bool CNXDNControl::processVoice(unsigned char usc, unsigned char option, unsigne
|
|||||||
lich.setDirection(m_remoteGateway || !m_duplex ? NXDN_LICH_DIRECTION_INBOUND : NXDN_LICH_DIRECTION_OUTBOUND);
|
lich.setDirection(m_remoteGateway || !m_duplex ? NXDN_LICH_DIRECTION_INBOUND : NXDN_LICH_DIRECTION_OUTBOUND);
|
||||||
lich.encode(start + 2U);
|
lich.encode(start + 2U);
|
||||||
|
|
||||||
|
lich.setDirection(NXDN_LICH_DIRECTION_INBOUND);
|
||||||
netData[0U] = lich.getRaw();
|
netData[0U] = lich.getRaw();
|
||||||
|
|
||||||
CNXDNSACCH sacch;
|
CNXDNSACCH sacch;
|
||||||
@@ -446,6 +448,7 @@ bool CNXDNControl::processVoice(unsigned char usc, unsigned char option, unsigne
|
|||||||
lich.setDirection(m_remoteGateway || !m_duplex ? NXDN_LICH_DIRECTION_INBOUND : NXDN_LICH_DIRECTION_OUTBOUND);
|
lich.setDirection(m_remoteGateway || !m_duplex ? NXDN_LICH_DIRECTION_INBOUND : NXDN_LICH_DIRECTION_OUTBOUND);
|
||||||
lich.encode(data + 2U);
|
lich.encode(data + 2U);
|
||||||
|
|
||||||
|
lich.setDirection(NXDN_LICH_DIRECTION_INBOUND);
|
||||||
netData[0U] = lich.getRaw();
|
netData[0U] = lich.getRaw();
|
||||||
|
|
||||||
// Regenerate SACCH if it's valid
|
// Regenerate SACCH if it's valid
|
||||||
@@ -614,6 +617,7 @@ bool CNXDNControl::processData(unsigned char option, unsigned char *data)
|
|||||||
lich.setDirection(m_remoteGateway || !m_duplex ? NXDN_LICH_DIRECTION_INBOUND : NXDN_LICH_DIRECTION_OUTBOUND);
|
lich.setDirection(m_remoteGateway || !m_duplex ? NXDN_LICH_DIRECTION_INBOUND : NXDN_LICH_DIRECTION_OUTBOUND);
|
||||||
lich.encode(data + 2U);
|
lich.encode(data + 2U);
|
||||||
|
|
||||||
|
lich.setDirection(NXDN_LICH_DIRECTION_INBOUND);
|
||||||
netData[0U] = lich.getRaw();
|
netData[0U] = lich.getRaw();
|
||||||
|
|
||||||
udch.getRaw(netData + 1U);
|
udch.getRaw(netData + 1U);
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ bool CNXDNLayer3::getIsGroup() const
|
|||||||
|
|
||||||
unsigned char CNXDNLayer3::getDataBlocks() const
|
unsigned char CNXDNLayer3::getDataBlocks() const
|
||||||
{
|
{
|
||||||
return m_data[8U] & 0x0FU;
|
return (m_data[8U] & 0x0FU) + 1U;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CNXDNLayer3::getData(unsigned char* data) const
|
void CNXDNLayer3::getData(unsigned char* data) const
|
||||||
|
|||||||
Reference in New Issue
Block a user