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
dcedd225
Commit
dcedd225
authored
Jul 17, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modbus RTU, avoid plc setfault if init failed
parent
262e5f87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_master.c
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_master.c
+6
-0
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_module.c
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_module.c
+6
-0
No files found.
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_master.c
View file @
dcedd225
...
...
@@ -689,6 +689,9 @@ static pwr_tStatus IoAgentRead (
local
=
(
io_sAgentLocal
*
)
ap
->
Local
;
if
(
!
local
->
initialized
)
return
IO__SUCCESS
;
rp
=
ap
->
racklist
;
while
(
rp
)
{
...
...
@@ -749,6 +752,9 @@ static pwr_tStatus IoAgentWrite (
local
=
(
io_sAgentLocal
*
)
ap
->
Local
;
if
(
!
local
->
initialized
)
return
IO__SUCCESS
;
rp
=
ap
->
racklist
;
while
(
rp
)
{
...
...
otherio/lib/rt/src/os_linux/rt_io_m_mb_rtu_module.c
View file @
dcedd225
...
...
@@ -103,6 +103,9 @@ static pwr_tStatus IoCardRead (
pwr_sClass_Modbus_RTU_Module
*
op
;
pwr_sClass_Modbus_RTU_Slave
*
slave
;
if
(
!
((
io_sAgentLocal
*
)
ap
->
Local
)
->
initialized
)
return
IO__SUCCESS
;
op
=
(
pwr_sClass_Modbus_RTU_Module
*
)
cp
->
op
;
local
=
((
io_sCardLocal
*
)
cp
->
Local
)
->
msg
;
slave
=
(
pwr_sClass_Modbus_RTU_Slave
*
)
rp
->
op
;
...
...
@@ -141,6 +144,9 @@ static pwr_tStatus IoCardWrite (
pwr_sClass_Modbus_RTU_Slave
*
slave
;
if
(
!
((
io_sAgentLocal
*
)
ap
->
Local
)
->
initialized
)
return
IO__SUCCESS
;
op
=
(
pwr_sClass_Modbus_RTU_Module
*
)
cp
->
op
;
local
=
((
io_sCardLocal
*
)
cp
->
Local
)
->
msg
;
slave
=
(
pwr_sClass_Modbus_RTU_Slave
*
)
rp
->
op
;
...
...
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