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
8dca0eaa
Commit
8dca0eaa
authored
Jan 21, 2019
by
Marcus Nordenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profinet: skip configuration for subslot 0x8000
parent
7785c4c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
profibus/lib/rt/src/os_linux/rt_pn_iface.cpp
profibus/lib/rt/src/os_linux/rt_pn_iface.cpp
+17
-3
No files found.
profibus/lib/rt/src/os_linux/rt_pn_iface.cpp
View file @
8dca0eaa
...
...
@@ -445,9 +445,23 @@ void pack_download_req(T_PNAK_SERVICE_REQ_RES* ServiceReqRes,
break
;
}
// printf("Number of modules for this slave: %d\n", num_modules);
// num_modules = dev_data->slot_data.size();
// Ignore Interface subslots as they break the device configuration
for
(
ii
=
0
;
ii
<
num_modules
;
ii
++
)
{
for
(
std
::
vector
<
GsdmlSubslotData
*>::
iterator
it
=
dev_data
->
slot_data
[
ii
]
->
subslot_data
.
begin
();
it
!=
dev_data
->
slot_data
[
ii
]
->
subslot_data
.
end
();)
{
// The interface submodule is always 32768 according to the standard
if
((
*
it
)
->
subslot_number
==
32768
)
{
delete
*
it
;
it
=
dev_data
->
slot_data
[
ii
]
->
subslot_data
.
erase
(
it
);
}
else
{
it
++
;
}
}
}
/* Calculate num apis */
...
...
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