kopia lustrzana https://github.com/pabr/leansdr
leanmlmrx: Handle last channel in a range more reliably.
rodzic
ee5cda74ba
commit
2e8fe2cb18
|
@ -810,11 +810,11 @@ int main(int argc, char *argv[]) {
|
|||
else if ( argv[i][0] == '-' )
|
||||
fail(argv[i]);
|
||||
else if ( sscanf(argv[i], "%lf:%lf:%lf", &fmin,&fstep,&fmax) == 3 ) {
|
||||
for ( double f=fmin; f<=fmax+1e-6; f+=fstep )
|
||||
for ( double f=fmin; f<fmax+fstep/2; f+=fstep )
|
||||
add_chan(&cfg, f, true);
|
||||
}
|
||||
else if ( sscanf(argv[i], "(%lf:%lf:%lf)", &fmin,&fstep,&fmax) == 3 ) {
|
||||
for ( double f=fmin; f<=fmax+1e-6; f+=fstep )
|
||||
for ( double f=fmin; f<fmax+fstep/2; f+=fstep )
|
||||
add_chan(&cfg, f, false);
|
||||
}
|
||||
else if ( sscanf(argv[i], "%lf", &fmin) == 1 ) {
|
||||
|
|
Ładowanie…
Reference in New Issue