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
69ada7b1
Commit
69ada7b1
authored
Jan 10, 2017
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HA] part of externa port config - forcing to remain in slave state
parent
aecc00d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
common-fun.c
proto-standard/common-fun.c
+4
-1
No files found.
proto-standard/common-fun.c
View file @
69ada7b1
...
...
@@ -89,7 +89,10 @@ int st_com_execute_slave(struct pp_instance *ppi)
if
(
pp_timeout
(
ppi
,
PP_TO_ANN_RECEIPT
))
{
ppi
->
frgn_rec_num
=
0
;
if
(
DSDEF
(
ppi
)
->
clockQuality
.
clockClass
!=
PP_CLASS_SLAVE_ONLY
if
(
DSDEF
(
ppi
)
->
externalPortConfiguration
==
1
&&
DSDEF
(
ppi
)
->
slaveOnly
==
0
&&
ppi
->
portDS
->
masterOnly
==
0
){
ppi
->
next_state
=
PPS_SLAVE
;
}
else
if
(
DSDEF
(
ppi
)
->
clockQuality
.
clockClass
!=
PP_CLASS_SLAVE_ONLY
&&
(
ppi
->
role
!=
PPSI_ROLE_SLAVE
))
{
ppi
->
next_state
=
PPS_MASTER
;
}
else
{
...
...
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