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
9bdd4913
Commit
9bdd4913
authored
Mar 06, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue WR parent detection
parent
9c5242a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
hooks.c
proto-ext-whiterabbit/hooks.c
+4
-2
state-wr-idle.c
proto-ext-whiterabbit/state-wr-idle.c
+1
-1
No files found.
proto-ext-whiterabbit/hooks.c
View file @
9bdd4913
...
...
@@ -212,7 +212,7 @@ static int wr_bmca_s1( struct pp_instance * ppi,
}
// Update WR parent flags
wrp
->
parentIsWRnode
=
(
wr_flags
&
WR_NODE_MODE
)
=
=
NON_WR
;
wrp
->
parentIsWRnode
=
(
wr_flags
&
WR_NODE_MODE
)
!
=
NON_WR
;
wrp
->
parentWrModeOn
=
(
wr_flags
&
WR_IS_WR_MODE
)
!=
0
;
wrp
->
parentCalibrated
=
(
wr_flags
&
WR_IS_CALIBRATED
)
!=
0
;
wrp
->
parentWrConfig
=
wr_flags
&
WR_NODE_MODE
;
...
...
@@ -233,7 +233,9 @@ static void wr_state_change(struct pp_instance *ppi)
pp_diag
(
ppi
,
ext
,
2
,
"hook: %s
\n
"
,
__func__
);
if
(
ppi
->
state
==
PPS_SLAVE
&&
ppi
->
next_state
==
PPS_UNCALIBRATED
)
{
if
(
ppi
->
state
==
PPS_SLAVE
&&
ppi
->
next_state
==
PPS_UNCALIBRATED
&&
wrp
->
parentIsWRnode
)
{
pdstate_enable_extension
(
ppi
);
// Re-enable the extension
}
...
...
proto-ext-whiterabbit/state-wr-idle.c
View file @
9bdd4913
...
...
@@ -53,7 +53,7 @@ int wr_idle(struct pp_instance *ppi, void *buf, int len, int new_state)
}
else
{
wrp
->
parentDetection
=
PD_NO_DETECTION
;
}
return
0
;
delay
=
0
;
}
else
if
(
wrp
->
parentDetection
==
PD_NOT_WR_PARENT
)
{
if
(
ppi
->
extState
==
PP_EXSTATE_ACTIVE
)
{
...
...
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