mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-06 15:04:16 +00:00
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:
parent
0e04ebae0f
commit
59011f3719
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue