mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-01-20 15:20:23 +01:00
Add the status and exclusion PC/TG to the control ignore list.
This commit is contained in:
parent
4ab6ef030e
commit
3b3243c1bf
|
|
@ -105,7 +105,7 @@ PROCESS_RESULT CRewriteDynTGRF::process(CDMRData& data, bool trace)
|
|||
return RESULT_IGNORED;
|
||||
}
|
||||
|
||||
if (std::find(m_exclTGs.cbegin(), m_exclTGs.cend(), dstId) != m_exclTGs.cend()) {
|
||||
if (slotNo == m_slot && std::find(m_exclTGs.cbegin(), m_exclTGs.cend(), dstId) != m_exclTGs.cend()) {
|
||||
if (trace)
|
||||
LogDebug("Rule Trace,\tRewriteDynTGRF from %s Slot=%u Dst=%u: not matched", m_name.c_str(), m_slot, dstId);
|
||||
|
||||
|
|
@ -156,6 +156,12 @@ void CRewriteDynTGRF::tgChange(unsigned int slot, unsigned int tg)
|
|||
return;
|
||||
}
|
||||
|
||||
if (slot == m_slot && tg == m_statusPC)
|
||||
return;
|
||||
|
||||
if (slot == m_slot && std::find(m_exclTGs.cbegin(), m_exclTGs.cend(), tg) != m_exclTGs.cend())
|
||||
return;
|
||||
|
||||
if (slot == m_slot && tg >= m_fromTGStart && tg <= m_fromTGEnd) {
|
||||
if (m_currentTG != tg) {
|
||||
m_currentTG = tg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue