Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
e90e03b9
Commit
e90e03b9
authored
Jul 19, 2013
by
pwrp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved status logic to IoAgentRead from AppCbEvent
parent
e517a7f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
otherio/lib/rt/src/os_linux/rt_io_m_epl_mn.c
otherio/lib/rt/src/os_linux/rt_io_m_epl_mn.c
+3
-2
No files found.
otherio/lib/rt/src/os_linux/rt_io_m_epl_mn.c
View file @
e90e03b9
...
...
@@ -318,7 +318,7 @@ static pwr_tStatus IoAgentInit (io_tCtx ctx, io_sAgent *ap) {
EplApiInitParam
.
m_dwFeatureFlags
=
-
1
;
// required for error detection
EplApiInitParam
.
m_dwCycleLen
=
5000
;
EplApiInitParam
.
m_dwCycleLen
=
uiCycleLen_g
;
// const
EplApiInitParam
.
m_uiIsochrTxMaxPayload
=
256
;
// const
...
...
@@ -644,7 +644,7 @@ tEplKernel PUBLIC AppCbEvent (
for
(
rp
=
pUserArg_p
->
racklist
;
rp
;
rp
=
rp
->
next
)
if
(((
pwr_sClass_Epl_CN
*
)
rp
->
op
)
->
NodeId
==
pEventArg_p
->
m_Node
.
m_uiNodeId
)
{
((
pwr_sClass_Epl_CN
*
)
rp
->
op
)
->
NmtState
=
pEventArg_p
->
m_Node
.
m_NmtState
;
((
pwr_sClass_Epl_CN
*
)
rp
->
op
)
->
Status
=
((
pwr_sClass_Epl_CN
*
)
rp
->
op
)
->
NmtState
==
pwr_eEplNmtState_EplNmtCsOperational
?
IOM__EPL_OPER
:
IOM__EPL_NOOPER
;
}
switch
(
pEventArg_p
->
m_Node
.
m_NmtState
)
...
...
@@ -916,6 +916,7 @@ static pwr_tStatus IoAgentRead( io_tCtx ctx, io_sAgent *ap) {
// Loop through all slaves
for
(
rp
=
ap
->
racklist
;
rp
;
rp
=
rp
->
next
)
{
((
pwr_sClass_Epl_CN
*
)
rp
->
op
)
->
Status
=
((
pwr_sClass_Epl_CN
*
)
rp
->
op
)
->
NmtState
==
pwr_eEplNmtState_EplNmtCsOperational
?
IOM__EPL_OPER
:
IOM__EPL_NOOPER
;
local1
=
(
io_sLocalEpl_CN
*
)
rp
->
Local
;
// Time now (tps = time when bad state occurred)
clock_gettime
(
CLOCK_REALTIME
,
&
local1
->
tpe
);
...
...
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