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
e7ecdb91
Commit
e7ecdb91
authored
Mar 22, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor rewrite
parent
4a20c78e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
fsm.c
fsm.c
+4
-3
wrh-servo.c
proto-ext-common/wrh-servo.c
+1
-1
No files found.
fsm.c
View file @
e7ecdb91
...
...
@@ -326,9 +326,10 @@ int pp_state_machine(struct pp_instance *ppi, void *buf, int len)
return
pp_leave_current_state
(
ppi
);
/* Check protocol state */
if
(
ppi
->
extState
==
PP_EXSTATE_ACTIVE
&&
(
ppi
->
pdstate
==
PP_PDSTATE_PDETECTION
||
ppi
->
pdstate
==
PP_PDSTATE_PDETECTED
)
&&
pp_timeout
(
ppi
,
PP_TO_PROT_STATE
)
)
{
if
(
ppi
->
extState
==
PP_EXSTATE_ACTIVE
&&
(
ppi
->
pdstate
==
PP_PDSTATE_PDETECTION
||
ppi
->
pdstate
==
PP_PDSTATE_PDETECTED
)
&&
pp_timeout
(
ppi
,
PP_TO_PROT_STATE
)
)
{
pdstate_disable_extension
(
ppi
);
}
...
...
proto-ext-common/wrh-servo.c
View file @
e7ecdb91
...
...
@@ -82,7 +82,7 @@ int wrh_servo_init(struct pp_instance *ppi)
WRH_SERVO_RESET_DATA
(
s
);
/* Update correction data in data sets*/
if
(
wrh_update_correction_values
(
ppi
)
!=
-
1
)
{
if
(
wrh_update_correction_values
(
ppi
)
==
0
)
{
/*
* Do not reset cur_setpoint, but trim it to be less than one tick.
...
...
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