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
47
Issues
47
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
9ba7bd54
Commit
9ba7bd54
authored
Sep 01, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: [WRS BUG: 244] 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
6 changed files
with
7 additions
and
5 deletions
+7
-5
common-fun.c
proto-ext-whiterabbit/common-fun.c
+2
-0
state-wr-calibrated.c
proto-ext-whiterabbit/state-wr-calibrated.c
+1
-1
state-wr-locked.c
proto-ext-whiterabbit/state-wr-locked.c
+1
-1
state-wr-m-lock.c
proto-ext-whiterabbit/state-wr-m-lock.c
+1
-1
state-wr-present.c
proto-ext-whiterabbit/state-wr-present.c
+1
-1
state-wr-resp-calib-req.c
proto-ext-whiterabbit/state-wr-resp-calib-req.c
+1
-1
No files found.
proto-ext-whiterabbit/common-fun.c
View file @
9ba7bd54
...
...
@@ -31,6 +31,8 @@ void wr_handshake_fail(struct pp_instance *ppi)
pp_diag
(
ppi
,
ext
,
1
,
"Handshake failure: now non-wr %s
\n
"
,
wrp
->
wrMode
==
WR_MASTER
?
"master"
:
"slave"
);
pp_error
(
"Handshake failure: now non-wr %s
\n
"
,
wrp
->
wrMode
==
WR_MASTER
?
"master"
:
"slave"
);
wrp
->
next_state
=
WRS_IDLE
;
wr_reset_process
(
ppi
,
WR_ROLE_NONE
);
wr_servo_reset
(
ppi
);
...
...
proto-ext-whiterabbit/state-wr-calibrated.c
View file @
9ba7bd54
...
...
@@ -41,7 +41,7 @@ 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
);
pp_error
(
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"CALIBRATE/WR_MODE_ON"
);
}
return
0
;
...
...
proto-ext-whiterabbit/state-wr-locked.c
View file @
9ba7bd54
...
...
@@ -35,7 +35,7 @@ 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
);
pp_error
(
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"CALIBRATE"
);
}
return
0
;
}
...
...
proto-ext-whiterabbit/state-wr-m-lock.c
View file @
9ba7bd54
...
...
@@ -35,7 +35,7 @@ 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
);
pp_error
(
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"LOCKED"
);
}
return
0
;
}
...
...
proto-ext-whiterabbit/state-wr-present.c
View file @
9ba7bd54
...
...
@@ -37,7 +37,7 @@ 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
);
pp_error
(
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"LOCK"
);
}
return
0
;
}
...
...
proto-ext-whiterabbit/state-wr-resp-calib-req.c
View file @
9ba7bd54
...
...
@@ -37,7 +37,7 @@ 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
);
pp_error
(
"WR: Invalid msgId(x%04x) received. %s was expected
\n
"
,
wrMsgId
,
"CALIBRATED"
);
}
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