mirror of https://github.com/g4klx/DMRGateway
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;
|
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)
|
if (trace)
|
||||||
LogDebug("Rule Trace,\tRewriteDynTGRF from %s Slot=%u Dst=%u: not matched", m_name.c_str(), m_slot, dstId);
|
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;
|
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 (slot == m_slot && tg >= m_fromTGStart && tg <= m_fromTGEnd) {
|
||||||
if (m_currentTG != tg) {
|
if (m_currentTG != tg) {
|
||||||
m_currentTG = tg;
|
m_currentTG = tg;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue