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 @@ CRewriteSrc::CRewriteSrc(const char* name, unsigned int fromSlot, unsigned int f
|
||||
m_name(name),
|
||||
m_fromSlot(fromSlot),
|
||||
m_fromIdStart(fromId),
|
||||
m_fromIdEnd(fromId + range),
|
||||
m_fromIdEnd(fromId + range - 1U),
|
||||
m_toSlot(toSlot),
|
||||
m_toTG(toTG),
|
||||
m_trace(trace),
|
||||
@@ -72,7 +72,7 @@ bool CRewriteSrc::process(CDMRData& data)
|
||||
unsigned int srcId = data.getSrcId();
|
||||
unsigned int slotNo = data.getSlotNo();
|
||||
|
||||
if (flco != FLCO_USER_USER || slotNo != m_fromSlot || srcId < m_fromIdStart || srcId >= m_fromIdEnd)
|
||||
if (flco != FLCO_USER_USER || slotNo != m_fromSlot || srcId < m_fromIdStart || srcId > m_fromIdEnd)
|
||||
return false;
|
||||
|
||||
if (m_fromSlot != m_toSlot)
|
||||
|
||||
Reference in New Issue
Block a user