mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 09:37:36 -05:00
Clear frequency band map when switching P25 control channels (#2404)
This commit is contained in:
@@ -199,6 +199,7 @@ public class P25TrafficChannelManager extends TrafficChannelManager implements I
|
|||||||
|
|
||||||
mTS1ChannelGrantEventMap.clear();
|
mTS1ChannelGrantEventMap.clear();
|
||||||
mTS2ChannelGrantEventMap.clear();
|
mTS2ChannelGrantEventMap.clear();
|
||||||
|
mFrequencyBandMap.clear();
|
||||||
|
|
||||||
//Remove the control channel from the previous frequency
|
//Remove the control channel from the previous frequency
|
||||||
mAllocatedTrafficChannelMap.remove(previous);
|
mAllocatedTrafficChannelMap.remove(previous);
|
||||||
|
|||||||
@@ -330,14 +330,7 @@ public class P25P1MessageProcessor implements Listener<IMessage>
|
|||||||
if(message instanceof IFrequencyBand)
|
if(message instanceof IFrequencyBand)
|
||||||
{
|
{
|
||||||
IFrequencyBand bandIdentifier = (IFrequencyBand)message;
|
IFrequencyBand bandIdentifier = (IFrequencyBand)message;
|
||||||
|
mFrequencyBandMap.put(bandIdentifier.getIdentifier(), bandIdentifier);
|
||||||
//Only store the frequency band if it's new so we don't hold on to more than one instance of the
|
|
||||||
//frequency band message. Otherwise, we'll hold on to several instances of each message as they get
|
|
||||||
//injected into other messages with channel information.
|
|
||||||
if(!mFrequencyBandMap.containsKey(bandIdentifier.getIdentifier()))
|
|
||||||
{
|
|
||||||
mFrequencyBandMap.put(bandIdentifier.getIdentifier(), bandIdentifier);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user