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
a99e2641
Commit
a99e2641
authored
Nov 30, 2010
by
Robert Karlsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes
parent
22fa20be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
profibus/lib/rt/src/rt_pn_gsdml_data.cpp
profibus/lib/rt/src/rt_pn_gsdml_data.cpp
+12
-10
No files found.
profibus/lib/rt/src/rt_pn_gsdml_data.cpp
View file @
a99e2641
...
@@ -383,17 +383,19 @@ int GsdmlDataReader::tag_attribute( const char *name, const char *value)
...
@@ -383,17 +383,19 @@ int GsdmlDataReader::tag_attribute( const char *name, const char *value)
switch
(
current_tag
)
{
switch
(
current_tag
)
{
case
gsdmldata_eTag_PnDevice
:
case
gsdmldata_eTag_PnDevice
:
if
(
strcmp
(
name
,
"GsdmlFile"
)
==
0
)
{
if
(
strcmp
(
name
,
"GsdmlFile"
)
==
0
)
{
// Check that the GSDML file is not changed
if
(
strcmp
(
data
->
gsdmlfile
,
""
)
!=
0
)
{
char
*
gsdmlfile_p
;
// Check that the GSDML file is not changed
char
*
gsdmlfile_p
;
// Print name of gsdmlfile, not path
// Print name of gsdmlfile, not path
if
(
(
gsdmlfile_p
=
strrchr
(
data
->
gsdmlfile
,
'/'
)))
if
(
(
gsdmlfile_p
=
strrchr
(
data
->
gsdmlfile
,
'/'
)))
gsdmlfile_p
++
;
gsdmlfile_p
++
;
else
else
gsdmlfile_p
=
data
->
gsdmlfile
;
gsdmlfile_p
=
data
->
gsdmlfile
;
if
(
strcmp
(
value
,
gsdmlfile_p
)
!=
0
)
if
(
strcmp
(
value
,
gsdmlfile_p
)
!=
0
)
return
PB__GSDMLFILEMISMATCH
;
return
PB__GSDMLFILEMISMATCH
;
}
}
}
else
if
(
strcmp
(
name
,
"DeviceText"
)
==
0
)
else
if
(
strcmp
(
name
,
"DeviceText"
)
==
0
)
strncpy
(
data
->
device_text
,
value
,
sizeof
(
data
->
device_text
));
strncpy
(
data
->
device_text
,
value
,
sizeof
(
data
->
device_text
));
...
...
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