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
89539827
Commit
89539827
authored
May 03, 2018
by
Jean-Claude BAU
Committed by
Adam Wujek
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create enumerate PPS_LAST_STATE. Used to check if the state is a non
standard PTP state.
parent
f834fa97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
fsm.c
fsm.c
+1
-1
ieee1588_types.h
include/ppsi/ieee1588_types.h
+1
-0
No files found.
fsm.c
View file @
89539827
...
...
@@ -92,7 +92,7 @@ int pp_leave_current_state(struct pp_instance *ppi)
pp_hooks
.
state_change
(
ppi
);
/* if the next or old state is non standard PTP reset all timeouts */
if
((
ppi
->
state
>
PPS_
SLAVE
)
||
(
ppi
->
next_state
>
PPS_SLAV
E
))
if
((
ppi
->
state
>
PPS_
LAST_STATE
)
||
(
ppi
->
next_state
>
PPS_LAST_STAT
E
))
pp_timeout_setall
(
ppi
);
ppi
->
state
=
ppi
->
next_state
;
...
...
include/ppsi/ieee1588_types.h
View file @
89539827
...
...
@@ -268,6 +268,7 @@ enum pp_std_states {
PPS_PASSIVE
,
PPS_UNCALIBRATED
,
PPS_SLAVE
,
PPS_LAST_STATE
=
PPS_SLAVE
};
enum
pp_std_messages
{
...
...
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