Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
e360d3b0
Commit
e360d3b0
authored
Feb 03, 2015
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Apr 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr-servo: calculate mu before printing it, not after
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
0250bb3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wr-servo.c
proto-ext-whiterabbit/wr-servo.c
+2
-1
No files found.
proto-ext-whiterabbit/wr-servo.c
View file @
e360d3b0
...
...
@@ -268,6 +268,8 @@ int wr_servo_update(struct pp_instance *ppi)
got_sync
=
0
;
s
->
mu
=
ts_sub
(
ts_sub
(
s
->
t4
,
s
->
t1
),
ts_sub
(
s
->
t3
,
s
->
t2
));
if
(
__PP_DIAG_ALLOW
(
ppi
,
pp_dt_servo
,
1
))
{
dump_timestamp
(
ppi
,
"servo:t1"
,
s
->
t1
);
dump_timestamp
(
ppi
,
"servo:t2"
,
s
->
t2
);
...
...
@@ -276,7 +278,6 @@ int wr_servo_update(struct pp_instance *ppi)
dump_timestamp
(
ppi
,
"->mdelay"
,
s
->
mu
);
}
s
->
mu
=
ts_sub
(
ts_sub
(
s
->
t4
,
s
->
t1
),
ts_sub
(
s
->
t3
,
s
->
t2
));
s
->
picos_mu
=
ts_to_picos
(
s
->
mu
);
big_delta_fix
=
s
->
delta_tx_m
+
s
->
delta_tx_s
+
s
->
delta_rx_m
+
s
->
delta_rx_s
;
...
...
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