aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2017-06-12 00:04:05 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2017-06-12 00:04:05 +0200
commitfa3a113b77b6ed2738778a52ae4f9ce4e6f18ea3 (patch)
tree586b964565b12d25e9e799f2ed42fee7595536e8
parent2be1612e604f950ba21ef6ff12488eab62e66ad5 (diff)
rtl_tcp: add command for bias tee control
-rw-r--r--src/rtl_tcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rtl_tcp.c b/src/rtl_tcp.c
index 317e0f3..aef120e 100644
--- a/src/rtl_tcp.c
+++ b/src/rtl_tcp.c
@@ -355,6 +355,10 @@ static void *command_worker(void *arg)
printf("set tuner gain by index %d\n", ntohl(cmd.param));
set_gain_by_index(dev, ntohl(cmd.param));
break;
+ case 0x0e:
+ printf("set bias tee %d\n", ntohl(cmd.param));
+ rtlsdr_set_bias_tee(dev, (int)ntohl(cmd.param));
+ break;
default:
break;
}