mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
rtl_tcp: allow to set xtal frequencies
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
c5d47b7f04
commit
7ff4abd378
@ -317,6 +317,14 @@ static void *command_worker(void *arg)
|
|||||||
printf("set offset tuning %d\n", ntohl(cmd.param));
|
printf("set offset tuning %d\n", ntohl(cmd.param));
|
||||||
rtlsdr_set_offset_tuning(dev, ntohl(cmd.param));
|
rtlsdr_set_offset_tuning(dev, ntohl(cmd.param));
|
||||||
break;
|
break;
|
||||||
|
case 0x0b:
|
||||||
|
printf("set rtl xtal %d\n", ntohl(cmd.param));
|
||||||
|
rtlsdr_set_xtal_freq(dev, ntohl(cmd.param), 0);
|
||||||
|
break;
|
||||||
|
case 0x0c:
|
||||||
|
printf("set tuner xtal %d\n", ntohl(cmd.param));
|
||||||
|
rtlsdr_set_xtal_freq(dev, 0, ntohl(cmd.param));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user