You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the RTL-SDR cannot fetch more than 2 MHz bandwidth, the frequencies provided in the list may not be separated by more than this. However, the binary happily accepts anything, and continues execution with unknown consequences.
I propose to implement a stop for this.
The text was updated successfully, but these errors were encountered:
E3V3A
changed the title
Add automatic test for maximum provided frequency separation
Add stop for exceeding maximum frequency separation
Jul 5, 2017
if ((Fd[nbch-1] -Fd[0]) >RTLINRATE-4*INTRATE) {
fprintf(stderr, "Frequencies too far apart\n");
return-1;
}
To:
if ((Fd[nbch-1] -Fd[0]) >RTLINRATE-4*INTRATE) {
fprintf(stderr, "ERROR: Frequencies are too far apart: df=%.2f MHz\n", (float)(Fd[nbch-1] -Fd[0]));
exit(1);
}
PS. I compiled this in my head, so I haven't tested it...
Since the RTL-SDR cannot fetch more than 2 MHz bandwidth, the frequencies provided in the list may not be separated by more than this. However, the binary happily accepts anything, and continues execution with unknown consequences.
I propose to implement a stop for this.
The text was updated successfully, but these errors were encountered: