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
8ce43d30
Commit
8ce43d30
authored
Jan 22, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix handling of is_new_state flag
parent
81c726be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fsm.c
fsm.c
+2
-1
No files found.
fsm.c
View file @
8ce43d30
...
...
@@ -30,7 +30,6 @@ int pp_state_machine(struct pp_instance *ppi, uint8_t *packet, int plen)
/* found: handle this state */
ppi
->
next_state
=
state
;
ppi
->
next_delay
=
0
;
ppi
->
is_new_state
=
0
;
pp_diag_fsm
(
ppi
,
0
/* enter */
,
plen
);
err
=
ip
->
f1
(
ppi
,
packet
,
plen
);
if
(
!
err
&&
ip
->
f2
)
...
...
@@ -39,6 +38,8 @@ int pp_state_machine(struct pp_instance *ppi, uint8_t *packet, int plen)
pp_diag_error
(
ppi
,
err
);
pp_diag_fsm
(
ppi
,
1
/* leave */
,
0
/* unused */
);
ppi
->
is_new_state
=
0
;
/* done: accept next state and delay */
if
(
ppi
->
state
!=
ppi
->
next_state
)
{
ppi
->
state
=
ppi
->
next_state
;
...
...
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