mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 10:37:26 -05:00
#165 - cleanup of logging and comments in TunerChannelSource
This commit is contained in:
@@ -37,6 +37,7 @@ public class PatchGroupManager
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages active P25 patch groups and auto-expires patch groups if not updated every 5 seconds.
|
* Manages active P25 patch groups and auto-expires patch groups if not updated every 5 seconds.
|
||||||
|
*
|
||||||
* @param aliasList to keep updated with patch group changes
|
* @param aliasList to keep updated with patch group changes
|
||||||
* @param broadcaster for rebroadcasting patch group related call events
|
* @param broadcaster for rebroadcasting patch group related call events
|
||||||
*/
|
*/
|
||||||
@@ -127,13 +128,14 @@ public class PatchGroupManager
|
|||||||
cleanupPatchGroups();
|
cleanupPatchGroups();
|
||||||
patchGroup = new PatchGroup(patchGroupID);
|
patchGroup = new PatchGroup(patchGroupID);
|
||||||
mPatchGroups.add(patchGroup);
|
mPatchGroups.add(patchGroup);
|
||||||
|
updated = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
patchGroup.updateTimestamp();
|
patchGroup.updateTimestamp();
|
||||||
}
|
}
|
||||||
|
|
||||||
for(String patchedGroup: patchedTalkgroups)
|
for(String patchedGroup : patchedTalkgroups)
|
||||||
{
|
{
|
||||||
if(patchGroup.addPatchedGroup(patchedGroup))
|
if(patchGroup.addPatchedGroup(patchedGroup))
|
||||||
{
|
{
|
||||||
@@ -209,7 +211,7 @@ public class PatchGroupManager
|
|||||||
*/
|
*/
|
||||||
private PatchGroup getPatchGroup(String patchGroupID)
|
private PatchGroup getPatchGroup(String patchGroupID)
|
||||||
{
|
{
|
||||||
for(PatchGroup patchGroup: mPatchGroups)
|
for(PatchGroup patchGroup : mPatchGroups)
|
||||||
{
|
{
|
||||||
if(patchGroup.getPatchGroupID().equals(patchGroupID))
|
if(patchGroup.getPatchGroupID().equals(patchGroupID))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user