From 4deb4c781ef2b858655e10278fad4776cca066b6 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 14 Mar 2020 01:13:23 +0100 Subject: [PATCH] use new mechanism for airspy bias-tee, too --- owrx/source/airspy.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/owrx/source/airspy.py b/owrx/source/airspy.py index 4453da9..f8003ec 100644 --- a/owrx/source/airspy.py +++ b/owrx/source/airspy.py @@ -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"]