RTL Misc; Disable Offset and Double BW; #125

This commit is contained in:
lwvmobile 2023-05-19 06:42:55 -04:00
parent 380657679e
commit bf4a4b574c
3 changed files with 8 additions and 5 deletions

View File

@ -1342,7 +1342,11 @@ main (int argc, char **argv)
fprintf (stderr,"%s\n", FM_banner[i]);
}
#ifdef AERO_BUILD
fprintf (stderr, "Build Version: v2.0.1-7 Win32 \n");
#else
fprintf (stderr, "Build Version: %s \n", GIT_TAG);
#endif
fprintf (stderr,"MBElib Version: %s\n", versionstr);
initOpts (&opts);

View File

@ -2059,7 +2059,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
{
printw ("------------------------------------------------------------------------------\n");
// printw ("| Digital Speech Decoder: Florida Man Edition - Aero %s \n", GIT_TAG);
printw ("| Digital Speech Decoder: Florida Man Edition - Aero %s \n", "v2.0.1-6 Win32");
printw ("| Digital Speech Decoder: Florida Man Edition - Aero %s \n", "v2.0.1-7 Win32");
printw ("------------------------------------------------------------------------------\n");
}
#elif LIMAZULUTWEAKS

View File

@ -805,7 +805,7 @@ void dongle_init(struct dongle_state *s)
s->gain = AUTO_GAIN; // tenths of a dB
s->mute = 0;
s->direct_sampling = 0;
s->offset_tuning = 1; // initial tests show this works better enabled
s->offset_tuning = 0; //E4000 tuners only
s->demod_target = &demod;
}
@ -964,7 +964,7 @@ void open_rtlsdr_stream(dsd_opts *opts)
{
struct sigaction sigact;
int r;
rtl_bandwidth = opts->rtl_bandwidth * 1000;
rtl_bandwidth = opts->rtl_bandwidth * 1000 * 2; //going to double the value -- may clear up issue with user specified BW not what it seems
bandwidth_multiplier = (bandwidth_divisor / rtl_bandwidth);
//this needs to be initted first, then we set the parameters
@ -1090,7 +1090,6 @@ void get_rtlsdr_sample(int16_t *sample, dsd_opts * opts, dsd_state * state)
void rtl_dev_tune(dsd_opts * opts, long int frequency)
{
int r;
uint32_t freq;
dongle.freq = opts->rtlsdr_center_freq = frequency;
optimal_settings(dongle.freq, demod.rate_in);
r = verbose_set_frequency(dongle.dev, dongle.freq);