mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-21 05:25:40 +08:00
Alter rewrite ranges so they appear correctly in tracing
This commit is contained in:
@@ -29,7 +29,7 @@ CRewritePC::CRewritePC(const char* name, unsigned int fromSlot, unsigned int fro
|
||||
m_name(name),
|
||||
m_fromSlot(fromSlot),
|
||||
m_fromIdStart(fromId),
|
||||
m_fromIdEnd(fromId + range),
|
||||
m_fromIdEnd(fromId + range - 1U),
|
||||
m_toSlot(toSlot),
|
||||
m_toIdStart(toId),
|
||||
m_trace(trace),
|
||||
@@ -70,7 +70,7 @@ bool CRewritePC::process(CDMRData& data)
|
||||
unsigned int dstId = data.getDstId();
|
||||
unsigned int slotNo = data.getSlotNo();
|
||||
|
||||
if (flco != FLCO_USER_USER || slotNo != m_fromSlot || dstId < m_fromIdStart || dstId >= m_fromIdEnd)
|
||||
if (flco != FLCO_USER_USER || slotNo != m_fromSlot || dstId < m_fromIdStart || dstId > m_fromIdEnd)
|
||||
return false;
|
||||
|
||||
if (m_fromSlot != m_toSlot)
|
||||
|
||||
Reference in New Issue
Block a user