Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When no scan range given on bookmark mode #28

Merged
merged 3 commits into from
Jul 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions gqrx-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ const char *g_bookmarksfile = "~/.config/gqrx/bookmarks.csv";
char *opt_hostname = NULL;
int opt_port = 0;
freq_t opt_freq = 0;
freq_t opt_min_freq = 0;
freq_t opt_max_freq = 0;
freq_t opt_min_freq = 24482800;
freq_t opt_max_freq = 1766172800;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please set these back to 0? They are used later in main() to validate the options consistency for -b -e. Thnx

freq_t opt_scan_bw = g_default_scan_bw;
long opt_delay = 0; //LWVMOBILE: Changing this variable from 0 to 250 attempt to fix 'no delay argument given' stoppage on bookmark scan
//LWVMOBILE: New variables inserted here
Expand Down Expand Up @@ -988,15 +988,15 @@ bool ScanBookmarkedFrequenciesInRange(int sockfd, freq_t freq_min, freq_t freq_m
if (opt_squelch_delta_auto_enable){
squelch_backup = squelch;
SetSquelchLevel(sockfd, Frequencies[i].noise_floor + squelch_delta);
printf ("[%s] Freq: %s active [%s],\nLevel: %2.2f/%2.2f, Squelch set: %f ",
printf ("[%s] Freq: %s active [%s],\nLevel: %2.2f/%2.2f, Squelch set: %2.2f ",
timestamp, print_freq(current_freq),
Frequencies[i].descr, level, squelch, Frequencies[i].noise_floor + squelch_delta);
}
else
{
squelch_backup = squelch;
SetSquelchLevel(sockfd, squelch - squelch_delta);
printf ("[%s] Freq: %s active [%s], Level: %2.2f/%2.2f,\nNoise Floor: %f, Squelch set: %f ",
printf ("[%s] Freq: %s active [%s], Level: %2.2f/%2.2f,\nNoise Floor: %f, Squelch set: %2.2f ",
timestamp, print_freq(current_freq),
Frequencies[i].descr, level, squelch, Frequencies[i].noise_floor, squelch - squelch_delta);
}
Expand Down Expand Up @@ -1459,7 +1459,7 @@ bool ScanFrequenciesInRange(int sockfd, freq_t freq_min, freq_t freq_max, freq_t
SetSquelchLevel(sockfd, squelch - squelch_delta);
}
time_t hit_time = GetTime(timestamp);
printf ("[%s] Freq: %s active,\nLevel: %2.2f/%2.2f, Squelch set: %f ",
printf ("[%s] Freq: %s active,\nLevel: %2.2f/%2.2f, Squelch set: %2.2f ",
timestamp, print_freq(current_freq),
level, squelch, Frequencies[i].noise_floor + squelch_delta);
fflush(stdout);
Expand Down