mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 01:27:34 -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:
|
case GTC:
|
||||||
if(mMPT1327TrafficChannelManager != null)
|
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
|
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
|
* Processes channel grants to allocate traffic channels and track overall channel usage. Generates
|
||||||
* decode events for each new channel that is allocated.
|
* 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)
|
if(mpt1327Message.getMessageType() == MPT1327Message.MPTMessageType.GTC)
|
||||||
{
|
{
|
||||||
IdentifierCollection identifierCollection = new IdentifierCollection(mpt1327Message.getIdentifiers());
|
|
||||||
MPT1327Channel mpt1327Channel = MPT1327Channel.create(mpt1327Message.getChannel());
|
MPT1327Channel mpt1327Channel = MPT1327Channel.create(mpt1327Message.getChannel());
|
||||||
mpt1327Channel.setChannelMap(mChannelMap);
|
mpt1327Channel.setChannelMap(mChannelMap);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user