From b290116ac72655c64403e6bf10ebc424f44c9373 Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Mon, 7 May 2012 22:38:25 +0200 Subject: [PATCH] rtl_tcp: add handler for freq correction command --- src/rtl_tcp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rtl_tcp.c b/src/rtl_tcp.c index 80175e9..8406074 100644 --- a/src/rtl_tcp.c +++ b/src/rtl_tcp.c @@ -287,10 +287,14 @@ static void *command_worker(void *arg) printf("set gain mode %d\n", cmd.param); rtlsdr_set_tuner_gain_mode(dev, cmd.param); break; - case 0x04: + case 0x04: printf("set gain %d\n", cmd.param); rtlsdr_set_tuner_gain(dev, cmd.param); break; + case 0x05: + printf("set freq correction %d\n", cmd.param); + rtlsdr_set_freq_correction(dev, cmd.param); + break; default: break; }