split touch notify from incorrect logic statement;

pull/32/head
Bryan Biedenkapp 3 years ago
parent c9f74e7abf
commit 3d7f04f523

@ -32,6 +32,7 @@
#include "dmr/Control.h"
#include "p25/Control.h"
#include "nxdn/Control.h"
#include "lookups/AffiliationLookup.h"
#include "modem/Modem.h"
#include "host/Host.h"
#include "network/json/json.h"

@ -499,6 +499,9 @@ bool Voice::process(uint8_t* data, uint32_t len)
if (m_p25->m_control) {
m_p25->m_affiliations.touchGrant(m_rfLC.getDstId());
}
if (m_p25->m_notifyCC) {
m_p25->notifyCC_TouchGrant(m_rfLC.getDstId());
}
@ -811,6 +814,9 @@ bool Voice::processNetwork(uint8_t* data, uint32_t len, lc::LC& control, data::L
if (m_p25->m_control) {
lc::LC control = lc::LC(*m_dfsiLC.control());
m_p25->m_affiliations.touchGrant(control.getDstId());
}
if (m_p25->m_notifyCC) {
m_p25->notifyCC_TouchGrant(control.getDstId());
}
@ -876,6 +882,9 @@ bool Voice::processNetwork(uint8_t* data, uint32_t len, lc::LC& control, data::L
if (m_p25->m_control) {
lc::LC control = lc::LC(*m_dfsiLC.control());
m_p25->m_affiliations.touchGrant(control.getDstId());
}
if (m_p25->m_notifyCC) {
m_p25->notifyCC_TouchGrant(control.getDstId());
}

Loading…
Cancel
Save

Powered by TurnKey Linux.