From 5f0bc4f4f86c775f0c3a314dbf7de662cf080f07 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Mon, 27 Oct 2014 21:26:12 -0400 Subject: [PATCH] fix issue with SDRThread logging --- src/SDRThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDRThread.cpp b/src/SDRThread.cpp index abbdf14..b5a13b9 100644 --- a/src/SDRThread.cpp +++ b/src/SDRThread.cpp @@ -98,12 +98,12 @@ wxThread::ExitCode SDRThread::Entry() { rtlsdr_read_sync(dev, buf, BUF_SIZE, &n_read); - std::cout << (n_read == BUF_SIZE) ? "." : "!"; - if (i % 50 == 0) { std::cout << std::endl; } + std::cout << ((n_read == BUF_SIZE) ? "." : "!"); + i++; } std::cout << std::endl << "Done." << std::endl << std::endl;