mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
@@ -24,7 +24,7 @@ package io.github.dsheirer.module.decode.p25.phase1.message.lc.motorola;
|
||||
|
||||
import io.github.dsheirer.bits.BinaryMessage;
|
||||
import io.github.dsheirer.identifier.Identifier;
|
||||
import io.github.dsheirer.module.decode.p25.identifier.talkgroup.APCO25Talkgroup;
|
||||
import io.github.dsheirer.module.decode.p25.identifier.radio.APCO25RadioIdentifier;
|
||||
import io.github.dsheirer.module.decode.p25.phase1.message.lc.LinkControlWord;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -94,7 +94,7 @@ public class LCMotorolaTalkComplete extends LinkControlWord
|
||||
{
|
||||
if(mAddress == null)
|
||||
{
|
||||
mAddress = APCO25Talkgroup.create(getMessage().getInt(ADDRESS));
|
||||
mAddress = APCO25RadioIdentifier.createFrom(getMessage().getInt(ADDRESS));
|
||||
}
|
||||
|
||||
return mAddress;
|
||||
|
||||
@@ -336,11 +336,8 @@ public class P25P2DecoderState extends TimeslotDecoderState implements Identifie
|
||||
|
||||
for(Identifier identifier : mac.getIdentifiers())
|
||||
{
|
||||
if(!(identifier.getForm() == Form.TALKGROUP && identifier.getRole() == Role.FROM))
|
||||
{
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -373,11 +370,8 @@ public class P25P2DecoderState extends TimeslotDecoderState implements Identifie
|
||||
|
||||
for(Identifier identifier : mac.getIdentifiers())
|
||||
{
|
||||
if(!(identifier.getForm() == Form.TALKGROUP && identifier.getRole() == Role.FROM))
|
||||
{
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -410,11 +404,8 @@ public class P25P2DecoderState extends TimeslotDecoderState implements Identifie
|
||||
|
||||
for(Identifier identifier : mac.getIdentifiers())
|
||||
{
|
||||
if(!(identifier.getForm() == Form.TALKGROUP && identifier.getRole() == Role.FROM))
|
||||
{
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -447,11 +438,8 @@ public class P25P2DecoderState extends TimeslotDecoderState implements Identifie
|
||||
|
||||
for(Identifier identifier : mac.getIdentifiers())
|
||||
{
|
||||
if(!(identifier.getForm() == Form.TALKGROUP && identifier.getRole() == Role.FROM))
|
||||
{
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -484,11 +472,8 @@ public class P25P2DecoderState extends TimeslotDecoderState implements Identifie
|
||||
|
||||
for(Identifier identifier : mac.getIdentifiers())
|
||||
{
|
||||
if(!(identifier.getForm() == Form.TALKGROUP && identifier.getRole() == Role.FROM))
|
||||
{
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
//Add to the identifier collection after filtering through the patch group manager
|
||||
getIdentifierCollection().update(mPatchGroupManager.update(identifier));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user