#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:
Denny Sheirer
2022-04-28 04:40:52 -04:00
committed by GitHub
parent f988344222
commit 77ea43f61a
7 changed files with 71 additions and 40 deletions

View File

@@ -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