Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
28
Issues
28
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
8f57a255
Commit
8f57a255
authored
Oct 21, 2012
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Nov 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/measure_t24p: dummy initialization so that gcc won't complain
parent
28a5e429
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
measure_t24p.c
tests/measure_t24p.c
+2
-3
No files found.
tests/measure_t24p.c
View file @
8f57a255
...
...
@@ -45,7 +45,7 @@ static int meas_phase_range(wr_socket_t * sock, int phase_min, int phase_max,
int
phase_step
,
struct
meas_entry
*
results
)
{
char
buf
[
128
];
wr_timestamp_t
ts_rx
,
ts_sync
;
wr_timestamp_t
ts_rx
,
ts_sync
=
{
0
,}
;
wr_sockaddr_t
from
;
MsgHeader
mhdr
;
int
setpoint
=
phase_min
,
i
=
0
,
phase
;
...
...
@@ -56,7 +56,6 @@ static int meas_phase_range(wr_socket_t * sock, int phase_min, int phase_max,
purge_socket
(
sock
);
i
=
0
;
ts_sync
.
correct
=
0
;
while
(
setpoint
<=
phase_max
)
{
ptpd_netif_get_dmtd_phase
(
sock
,
&
phase
);
...
...
@@ -67,7 +66,7 @@ static int meas_phase_range(wr_socket_t * sock, int phase_min, int phase_max,
msgUnpackHeader
(
buf
,
&
mhdr
);
if
(
mhdr
.
messageType
==
0
)
ts_sync
=
ts_rx
;
else
if
(
mhdr
.
messageType
==
8
&&
ts_sync
.
correct
==
1
)
{
else
if
(
mhdr
.
messageType
==
8
&&
ts_sync
.
correct
)
{
MsgFollowUp
fup
;
msgUnpackFollowUp
(
buf
,
&
fup
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment