From 39062a7a7b61c017132c5febc9a7dca6aee88803 Mon Sep 17 00:00:00 2001 From: GravesJake Date: Wed, 7 Nov 2018 11:24:13 -0700 Subject: [PATCH] Remove usleep (incompatible with Windows) --- host/hackrf-tools/src/hackrf_sweep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index 244efe65..a0a42755 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -704,8 +704,7 @@ int main(int argc, char** argv) { fprintf(stderr, "Stop with Ctrl-C\n"); while((hackrf_is_streaming(device) == HACKRF_TRUE) && (do_exit == false)) { float time_difference; - // sleep(1); - usleep(50000); + sleep(1); gettimeofday(&time_now, NULL);