Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
librf625
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rf625
librf625
Commits
33707d7c
Commit
33707d7c
authored
7 years ago
by
pfilipch
Browse files
Options
Downloads
Patches
Plain Diff
fix sample
parent
189b0432
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
samples/udp_rate.cpp
+2
-1
2 additions, 1 deletion
samples/udp_rate.cpp
with
2 additions
and
1 deletion
samples/udp_rate.cpp
+
2
−
1
View file @
33707d7c
...
...
@@ -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
(
2
000
));
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
1
000
));
std
::
cout
<<
std
::
endl
<<
"Started measuring rate, press Esc to stop..."
<<
std
::
endl
;
std
::
cout
<<
std
::
flush
;
ftime
(
&
start_t
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment