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
e5ddf2cc
Commit
e5ddf2cc
authored
Oct 25, 2016
by
Alessandro Rubini
Committed by
Adam Wujek
Nov 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: remove a function emptied by previous commit
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
60d1358e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
servo.c
proto-standard/servo.c
+2
-20
No files found.
proto-standard/servo.c
View file @
e5ddf2cc
...
...
@@ -111,22 +111,6 @@ void pp_servo_got_psync(struct pp_instance *ppi)
(
int
)
SRV
(
ppi
)
->
obs_drift
>>
10
);
}
/*
* This function makes the necessary checks to discard a set of t1..t4.
* It relies on mpd to be already calculated.
*/
static
int
pp_servo_bad_event
(
struct
pp_instance
*
ppi
)
{
TimeInternal
*
m_to_s_dly
=
&
SRV
(
ppi
)
->
m_to_s_dly
;
TimeInternal
*
s_to_m_dly
=
&
SRV
(
ppi
)
->
s_to_m_dly
;
TimeInternal
*
mpd
=
&
DSCUR
(
ppi
)
->
meanPathDelay
;
/* Discard meanPathDelays that overflow a second (makes no sense) */
if
(
mpd
->
seconds
)
return
1
;
return
0
;
}
/* called by slave states when delay_resp is received (all t1..t4 are valid) */
void
pp_servo_got_resp
(
struct
pp_instance
*
ppi
)
{
...
...
@@ -164,8 +148,7 @@ void pp_servo_got_resp(struct pp_instance *ppi)
div2_TimeInternal
(
mpd
);
pp_diag
(
ppi
,
servo
,
1
,
"meanPathDelay: %s
\n
"
,
fmt_TI
(
mpd
));
/* if this succeeds mpd->seconds == 0 is true */
if
(
pp_servo_bad_event
(
ppi
))
if
(
mpd
->
seconds
)
/* Hmm.... we called this "bad event" */
return
;
/* mean path delay filtering */
...
...
@@ -222,8 +205,7 @@ void pp_servo_got_presp(struct pp_instance *ppi)
div2_TimeInternal
(
mpd
);
pp_diag
(
ppi
,
servo
,
1
,
"meanPathDelay: %s
\n
"
,
fmt_TI
(
mpd
));
/* if this succeeds mpd->seconds == 0 is true */
if
(
pp_servo_bad_event
(
ppi
))
if
(
mpd
->
seconds
)
/* Hmm.... we called this "bad event" */
return
;
pp_servo_mpd_fltr
(
ppi
,
mpd_fltr
,
mpd
);
...
...
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