diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index d4e6d333..6a9d0f19 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -165,6 +165,7 @@ volatile uint32_t byte_count = 0; struct timeval time_start; struct timeval t_start; +struct timeval time_stamp; bool amp = false; uint32_t amp_enable; @@ -199,7 +200,6 @@ int rx_callback(hackrf_transfer* transfer) { uint64_t band_edge; uint32_t record_length; int i, j; - struct timeval time_stamp; struct tm *fft_time; char time_str[50]; @@ -207,13 +207,9 @@ int rx_callback(hackrf_transfer* transfer) { return -1; } - gettimeofday(&time_stamp, NULL); byte_count += transfer->valid_length; buf = (int8_t*) transfer->buffer; for(j=0; j= (uint64_t)(FREQ_ONE_MHZ*frequencies[num_ranges*2-1]))) { - do_exit = true; - } } return 0; }