Skip to content

Commit 5b6377c

Browse files
DSheirerDennis Sheirer
andauthored
#1558 Resolves issue where heterodyne channelizer allows tuning a set of channels that exceed the tuner's bandwidth. (#1561)
Co-authored-by: Dennis Sheirer <[email protected]>
1 parent 9502ca3 commit 5b6377c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/main/java/io/github/dsheirer/source/tuner/manager/CenterFrequencyCalculator.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* *****************************************************************************
3-
* Copyright (C) 2014-2022 Dennis Sheirer
3+
* Copyright (C) 2014-2023 Dennis Sheirer
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -123,17 +123,11 @@ public static long getCenterFrequency(TunerController tunerController, SortedSet
123123
/**
124124
* Indicates if channel along with all of the other currently sourced
125125
* channels can fit within the tunable bandwidth.
126-
*
127-
*/
128-
/**
129-
*
130-
* Indicates if channel along with all of the other currently sourced
131-
* channels can fit within the tunable bandwidth.
132126
133127
* @param channel to test
134128
* @param tunerController that will provide the channel
135129
* @param channels is a current set of channels being sourced by the tuner controller
136-
* @return
130+
* @return true if it can tune all of the channels.
137131
*/
138132
public static boolean canTune(TunerChannel channel, TunerController tunerController, SortedSet<TunerChannel> channels)
139133
{
@@ -149,7 +143,7 @@ public static boolean canTune(TunerChannel channel, TunerController tunerControl
149143
{
150144
SortedSet<TunerChannel> allChannels = new TreeSet<>();
151145

152-
for(TunerChannel tunerChannel: allChannels)
146+
for(TunerChannel tunerChannel: channels)
153147
{
154148
if(tunerChannel != null)
155149
{

0 commit comments

Comments
 (0)