mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-20 04:27:48 -05:00
Resolves issue with FCD2 tuner frequency.
This commit is contained in:
@@ -108,7 +108,7 @@ public class TunerModel extends AbstractTableModel implements Listener<TunerEven
|
|||||||
{
|
{
|
||||||
mLog.error( "Couldn't apply tuner configuration to tuner - ["
|
mLog.error( "Couldn't apply tuner configuration to tuner - ["
|
||||||
+ tuner.getTunerType().name() + "] with id ["
|
+ tuner.getTunerType().name() + "] with id ["
|
||||||
+ tuner.getUniqueID() + "] - tuner will not be included" );
|
+ tuner.getUniqueID() + "] - tuner will not be included", se );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,16 @@ public class FCD2TunerController extends FCDTunerController
|
|||||||
FCD2TunerConfiguration fcd2 = (FCD2TunerConfiguration)config;
|
FCD2TunerConfiguration fcd2 = (FCD2TunerConfiguration)config;
|
||||||
|
|
||||||
setFrequencyCorrection(fcd2.getFrequencyCorrection());
|
setFrequencyCorrection(fcd2.getFrequencyCorrection());
|
||||||
setFrequency(fcd2.getFrequency());
|
|
||||||
|
long frequency = MINIMUM_TUNABLE_FREQUENCY;
|
||||||
|
|
||||||
|
if(fcd2.getFrequency() >= MINIMUM_TUNABLE_FREQUENCY &&
|
||||||
|
fcd2.getFrequency() <= MAXIMUM_TUNABLE_FREQUENCY)
|
||||||
|
{
|
||||||
|
frequency = fcd2.getFrequency();
|
||||||
|
}
|
||||||
|
|
||||||
|
setFrequency(frequency);
|
||||||
setLNAGain(fcd2.getGainLNA());
|
setLNAGain(fcd2.getGainLNA());
|
||||||
setMixerGain(fcd2.getGainMixer());
|
setMixerGain(fcd2.getGainMixer());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user