mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-01-28 19:04:56 +01:00
change v3 auto direct sampling swtich to 24 mhz
This commit is contained in:
parent
41ca7ff956
commit
8c59802348
@ -898,10 +898,10 @@ int rtlsdr_set_center_freq(rtlsdr_dev_t *dev, uint32_t freq)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* Check if direct sampling should be enabled.
|
/* Check if direct sampling should be enabled.
|
||||||
* Also only enable auto switch if ds mode is 0 (aka None, or standard mode)
|
* Also only enable auto switch if ds mode is 0 (aka None, or standard mode)
|
||||||
*/
|
*/
|
||||||
if(dev->direct_sampling_mode == 0) {
|
if(dev->direct_sampling_mode == 0) {
|
||||||
dev->direct_sampling = (freq < 28800000 && dev->tuner_type == RTLSDR_TUNER_R820T) ? 2 : 0;
|
dev->direct_sampling = (freq < 24000000 && dev->tuner_type == RTLSDR_TUNER_R820T) ? 2 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dev->direct_sampling) {
|
if (dev->direct_sampling) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user