Skip to content

Commit

Permalink
#1558 Resolves issue where heterodyne channelizer allows tuning a set…
Browse files Browse the repository at this point in the history
… of channels that exceed the tuner's bandwidth. (#1561)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
  • Loading branch information
DSheirer and Dennis Sheirer committed May 21, 2023
1 parent 9502ca3 commit 5b6377c
Showing 1 changed file with 3 additions and 9 deletions.
@@ -1,6 +1,6 @@
/*
* *****************************************************************************
* Copyright (C) 2014-2022 Dennis Sheirer
* Copyright (C) 2014-2023 Dennis Sheirer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -123,17 +123,11 @@ public static long getCenterFrequency(TunerController tunerController, SortedSet
/**
* Indicates if channel along with all of the other currently sourced
* channels can fit within the tunable bandwidth.
*
*/
/**
*
* Indicates if channel along with all of the other currently sourced
* channels can fit within the tunable bandwidth.
* @param channel to test
* @param tunerController that will provide the channel
* @param channels is a current set of channels being sourced by the tuner controller
* @return
* @return true if it can tune all of the channels.
*/
public static boolean canTune(TunerChannel channel, TunerController tunerController, SortedSet<TunerChannel> channels)
{
Expand All @@ -149,7 +143,7 @@ public static boolean canTune(TunerChannel channel, TunerController tunerControl
{
SortedSet<TunerChannel> allChannels = new TreeSet<>();

for(TunerChannel tunerChannel: allChannels)
for(TunerChannel tunerChannel: channels)
{
if(tunerChannel != null)
{
Expand Down

0 comments on commit 5b6377c

Please sign in to comment.