mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-17 11:07:35 -05:00
@@ -564,11 +564,6 @@ public class SettingsManager
|
|||||||
ArrayList<TunerConfiguration> configs = getSettings()
|
ArrayList<TunerConfiguration> configs = getSettings()
|
||||||
.getTunerConfigurations( type );
|
.getTunerConfigurations( type );
|
||||||
|
|
||||||
if( configs.isEmpty() )
|
|
||||||
{
|
|
||||||
configs.add( addNewTunerConfiguration( type, "Default" ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
return configs;
|
return configs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -547,16 +547,14 @@ public class TunerManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
config = configs.get( 0 );
|
|
||||||
}
|
|
||||||
|
|
||||||
//If we're still null at this point, create a default config
|
//If we're still null at this point, create a default config
|
||||||
if( config == null )
|
if( config == null )
|
||||||
{
|
{
|
||||||
|
String name = "Default-" + tuner.getUniqueID();
|
||||||
|
|
||||||
config = mSettingsManager.addNewTunerConfiguration(
|
config = mSettingsManager.addNewTunerConfiguration(
|
||||||
tuner.getTunerType(), "Default" );
|
tuner.getTunerType(), name );
|
||||||
}
|
}
|
||||||
|
|
||||||
//Persist the config as the selected tuner configuration. The method
|
//Persist the config as the selected tuner configuration. The method
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class R820TTunerConfiguration extends TunerConfiguration
|
|||||||
private R820TLNAGain mLNAGain = R820TLNAGain.GAIN_222;
|
private R820TLNAGain mLNAGain = R820TLNAGain.GAIN_222;
|
||||||
private R820TVGAGain mVGAGain = R820TVGAGain.GAIN_210;
|
private R820TVGAGain mVGAGain = R820TVGAGain.GAIN_210;
|
||||||
private double mFrequencyCorrection = 0.0d;
|
private double mFrequencyCorrection = 0.0d;
|
||||||
private SampleRate mSampleRate = SampleRate.RATE_1_920MHZ;
|
private SampleRate mSampleRate = SampleRate.RATE_2_400MHZ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor for JAXB
|
* Default constructor for JAXB
|
||||||
|
|||||||
Reference in New Issue
Block a user