Fix minor compiler warning in sdr.c
This commit is contained in:
parent
5816f8e7c0
commit
0e132f6167
|
@ -307,7 +307,7 @@ void *sdr_open(const char __attribute__((__unused__)) *device, double *tx_freque
|
|||
PDEBUG(DSDR, DEBUG_INFO, "We shift center frequency %.0f KHz down (half bandwidth), to prevent channel from overlap with DC level.\n", bandwidth / 2.0 / 1e3);
|
||||
} else {
|
||||
/* find two channels that are aside the center */
|
||||
double low_dist, high_dist, dist;
|
||||
double low_dist = 0, high_dist = 0, dist;
|
||||
int low_c = -1, high_c = -1;
|
||||
for (c = 0; c < channels; c++) {
|
||||
dist = fabs(tx_center_frequency - sdr->chan[c].tx_frequency);
|
||||
|
|
Loading…
Reference in New Issue