Fix stale slot number in RF-to-network rewrite path

After rewrite rules transform data (potentially changing the slot),
the code used the pre-rewrite slotNo for status tracking and timers.
Re-read slotNo after rewrite, matching the network-to-RF path.
This commit is contained in:
Ember 2026-04-04 16:49:28 -07:00
parent 0e04ebae0f
commit 59011f3719

View file

@ -620,6 +620,7 @@ int CDMRGateway::run()
}
if (result == PROCESS_RESULT::MATCHED) {
slotNo = data.getSlotNo();
if (m_extStatus[slotNo].m_status == DMRGW_STATUS::NONE || (
m_extStatus[slotNo].m_status == DMRGW_STATUS::DMRNETWORK &&
m_extStatus[slotNo].m_dmrNetwork == i)
@ -650,6 +651,7 @@ int CDMRGateway::run()
}
if (result == PROCESS_RESULT::MATCHED) {
slotNo = data.getSlotNo();
if (m_extStatus[slotNo].m_status == DMRGW_STATUS::NONE || (
m_extStatus[slotNo].m_status == DMRGW_STATUS::DMRNETWORK &&
m_extStatus[slotNo].m_dmrNetwork == i)