Commit 4b8aa435 authored by Claes Sjofors's avatar Claes Sjofors

Profinet check of changed gsdml file removed in runtime again

parent ae1fc3e5
...@@ -383,6 +383,7 @@ int GsdmlDataReader::tag_attribute( const char *name, const char *value) ...@@ -383,6 +383,7 @@ 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) {
if ( strcmp( data->gsdmlfile, "") != 0) {
// Check that the GSDML file is not changed // Check that the GSDML file is not changed
char *gsdmlfile_p; char *gsdmlfile_p;
...@@ -395,6 +396,7 @@ int GsdmlDataReader::tag_attribute( const char *name, const char *value) ...@@ -395,6 +396,7 @@ int GsdmlDataReader::tag_attribute( const char *name, const char *value)
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));
else if ( strcmp( name, "DeviceNumber") == 0) else if ( strcmp( name, "DeviceNumber") == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment