Skip to content

Commit

Permalink
change v3 auto direct sampling swtich to 24 mhz
Browse files Browse the repository at this point in the history
  • Loading branch information
rtlsdrblog committed Aug 29, 2023
1 parent 41ca7ff commit 8c59802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librtlsdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,10 +898,10 @@ int rtlsdr_set_center_freq(rtlsdr_dev_t *dev, uint32_t freq)
return 1;

/* 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) {
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) {
Expand Down

0 comments on commit 8c59802

Please sign in to comment.