use new mechanism for airspy bias-tee, too

This commit is contained in:
Jakob Ketterl 2020-03-14 01:13:23 +01:00
parent 5da2047935
commit 4deb4c781e
1 changed files with 4 additions and 5 deletions

View File

@ -3,11 +3,10 @@ from .soapy import SoapyConnectorSource
class AirspySource(SoapyConnectorSource):
def getCommandMapper(self):
return super().getCommandMapper().setMappings({"bias_tee": Flag("-t biastee=true")})
def getSoapySettingsMappings(self):
mappings = super().getSoapySettingsMappings()
mappings.update({"bias_tee": "biastee"})
return mappings
def getDriver(self):
return "airspy"
def getEventNames(self):
return super().getEventNames() + ["bias_tee"]