From 33707d7c0f6589bc4d25d9393ae6f9546ce25e0b Mon Sep 17 00:00:00 2001 From: pfilipch Date: Fri, 2 Feb 2018 12:33:09 +0300 Subject: [PATCH] fix sample --- samples/udp_rate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/udp_rate.cpp b/samples/udp_rate.cpp index d6227e8..6dcbf24 100644 --- a/samples/udp_rate.cpp +++ b/samples/udp_rate.cpp @@ -26,6 +26,7 @@ void udp_proc(rf625_profile prf) /* Increase counter */ count[prf.serial_number]++; if (start_timer) { + //std::cout << count[prf.serial_number] << std::endl; start_timer = false; count[prf.serial_number] = 0; } @@ -71,7 +72,7 @@ int main(int argc, char *argv[]) for (auto dev: dev_list) { dev->udp_register_callback(udp_proc); } - std::this_thread::sleep_for(std::chrono::milliseconds(2000)); + std::this_thread::sleep_for(std::chrono::milliseconds(1000)); std::cout << std::endl << "Started measuring rate, press Esc to stop..." << std::endl; std::cout << std::flush; ftime(&start_t); -- GitLab