From 16d5db00afa7c222e10a2e5b8ce2296c4d1a13b8 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 26 Mar 2020 13:33:32 +0100 Subject: [PATCH] send bias tee configs for rtl_sdr --- owrx/source/rtl_sdr.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/owrx/source/rtl_sdr.py b/owrx/source/rtl_sdr.py index 64badf1..bc7c523 100644 --- a/owrx/source/rtl_sdr.py +++ b/owrx/source/rtl_sdr.py @@ -1,6 +1,14 @@ from .connector import ConnectorSource +from owrx.command import Flag class RtlSdrSource(ConnectorSource): def getCommandMapper(self): - return super().getCommandMapper().setBase("rtl_connector") + return super().getCommandMapper().setBase("rtl_connector").setMappings( + { + "bias_tee": Flag("-b") + } + ) + + def getEventNames(self): + return super().getEventNames() + ["bias_tee"]