Only clear the local activity flag if idle or TG#0

This commit is contained in:
Tobias Blomberg 2020-12-19 18:45:54 +01:00
parent 871a0aa5ef
commit 8be029b983
1 changed files with 5 additions and 1 deletions

View File

@ -1581,11 +1581,15 @@ void ReflectorLogic::selectTg(uint32_t tg, const std::string& event, bool unmute
m_previous_tg = m_selected_tg;
}
m_selected_tg = tg;
m_tg_local_activity = false;
if (tg == 0)
{
m_tg_local_activity = false;
m_use_prio = true;
}
else
{
m_tg_local_activity = !m_logic_con_in->isIdle();
}
m_event_handler->setVariable(name() + "::selected_tg", m_selected_tg);
m_event_handler->setVariable(name() + "::previous_tg", m_previous_tg);
}