Skip to content
Snippets Groups Projects
Commit 33707d7c authored by pfilipch's avatar pfilipch
Browse files

fix sample

parent 189b0432
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment