Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39062a7

Browse files
committed
Remove usleep (incompatible with Windows)
1 parent 982770b commit 39062a7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

host/hackrf-tools/src/hackrf_sweep.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,7 @@ int main(int argc, char** argv) {
704704
fprintf(stderr, "Stop with Ctrl-C\n");
705705
while((hackrf_is_streaming(device) == HACKRF_TRUE) && (do_exit == false)) {
706706
float time_difference;
707-
// sleep(1);
708-
usleep(50000);
707+
sleep(1);
709708

710709
gettimeofday(&time_now, NULL);
711710

0 commit comments

Comments
 (0)