mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-11 08:07:24 -05:00
Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
@@ -205,7 +205,10 @@ public class MPT1327DecoderState extends DecoderState
|
||||
case GTC:
|
||||
if(mMPT1327TrafficChannelManager != null)
|
||||
{
|
||||
mMPT1327TrafficChannelManager.processChannelGrant(mpt);
|
||||
MutableIdentifierCollection ic = new MutableIdentifierCollection(getIdentifierCollection().getIdentifiers());
|
||||
ic.remove(IdentifierClass.USER);
|
||||
ic.update(mpt.getIdentifiers());
|
||||
mMPT1327TrafficChannelManager.processChannelGrant(mpt, ic);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -81,11 +81,10 @@ public class MPT1327TrafficChannelManager extends Module implements IDecodeEvent
|
||||
* Processes channel grants to allocate traffic channels and track overall channel usage. Generates
|
||||
* decode events for each new channel that is allocated.
|
||||
*/
|
||||
public void processChannelGrant(MPT1327Message mpt1327Message)
|
||||
public void processChannelGrant(MPT1327Message mpt1327Message, IdentifierCollection identifierCollection)
|
||||
{
|
||||
if(mpt1327Message.getMessageType() == MPT1327Message.MPTMessageType.GTC)
|
||||
{
|
||||
IdentifierCollection identifierCollection = new IdentifierCollection(mpt1327Message.getIdentifiers());
|
||||
MPT1327Channel mpt1327Channel = MPT1327Channel.create(mpt1327Message.getChannel());
|
||||
mpt1327Channel.setChannelMap(mChannelMap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user