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
36fc296e
Commit
36fc296e
authored
Sep 01, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUG:
#34
] proto-ext-whiterabbit: Do not fail handshake if wrong frame received
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
7d616547
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
5 deletions
+0
-5
state-wr-calibrated.c
proto-ext-whiterabbit/state-wr-calibrated.c
+0
-1
state-wr-locked.c
proto-ext-whiterabbit/state-wr-locked.c
+0
-1
state-wr-m-lock.c
proto-ext-whiterabbit/state-wr-m-lock.c
+0
-1
state-wr-present.c
proto-ext-whiterabbit/state-wr-present.c
+0
-1
state-wr-resp-calib-req.c
proto-ext-whiterabbit/state-wr-resp-calib-req.c
+0
-1
No files found.
proto-ext-whiterabbit/state-wr-calibrated.c
View file @
36fc296e
...
...
@@ -41,7 +41,6 @@ int wr_calibrated(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp
->
next_state
=
WRS_WR_LINK_ON
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"CALIBRATE/WR_MODE_ON"
);
wr_handshake_fail
(
ppi
);
}
return
0
;
...
...
proto-ext-whiterabbit/state-wr-locked.c
View file @
36fc296e
...
...
@@ -35,7 +35,6 @@ int wr_locked(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp
->
next_state
=
WRS_RESP_CALIB_REQ
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"CALIBRATE"
);
wr_handshake_fail
(
ppi
);
}
return
0
;
}
...
...
proto-ext-whiterabbit/state-wr-m-lock.c
View file @
36fc296e
...
...
@@ -35,7 +35,6 @@ int wr_m_lock(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp
->
next_state
=
WRS_CALIBRATION
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"LOCKED"
);
wr_handshake_fail
(
ppi
);
}
return
0
;
}
...
...
proto-ext-whiterabbit/state-wr-present.c
View file @
36fc296e
...
...
@@ -37,7 +37,6 @@ int wr_present(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp
->
next_state
=
WRS_S_LOCK
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"LOCK"
);
wr_handshake_fail
(
ppi
);
}
return
0
;
}
...
...
proto-ext-whiterabbit/state-wr-resp-calib-req.c
View file @
36fc296e
...
...
@@ -37,7 +37,6 @@ int wr_resp_calib_req(struct pp_instance *ppi, void *buf, int len, int new_state
WRS_CALIBRATION
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"CALIBRATED"
);
wr_handshake_fail
(
ppi
);
}
return
0
;
}
...
...
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