mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
#1221 resolves null pointer exception in tuner editor when attempting to restart an error tuner. (#1222)
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -54,6 +54,8 @@ public enum TunerClass
|
||||
public static final EnumSet<TunerClass> SUPPORTED_USB_TUNERS = EnumSet.of(AIRSPY, HACKRF, RTL2832,
|
||||
FUNCUBE_DONGLE_PRO, FUNCUBE_DONGLE_PRO_PLUS);
|
||||
|
||||
public static final EnumSet<TunerClass> FUNCUBE_TUNERS = EnumSet.of(FUNCUBE_DONGLE_PRO, FUNCUBE_DONGLE_PRO_PLUS);
|
||||
|
||||
/**
|
||||
* Indicates if this tuner class entry is a supported USB tuner class.
|
||||
*/
|
||||
@@ -62,6 +64,14 @@ public enum TunerClass
|
||||
return SUPPORTED_USB_TUNERS.contains(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the tuner class is a funcube dongle with a matching sound card interface
|
||||
*/
|
||||
public boolean isFuncubeTuner()
|
||||
{
|
||||
return FUNCUBE_TUNERS.contains(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup a USB tuner class from the USB vid and pid
|
||||
* @param vendor id
|
||||
|
||||
Reference in New Issue
Block a user