Commit 34b4523d authored by Claes Sjofors's avatar Claes Sjofors

Profinet configurator script functions, bugfix for missing gsdml filename

parent 1dc5ceb7
...@@ -508,6 +508,8 @@ int GsdmlDataReader::tag_attribute( const char *name, const char *value) ...@@ -508,6 +508,8 @@ int GsdmlDataReader::tag_attribute( const char *name, const char *value)
if ( strcmp( value, gsdmlfile_p) != 0 && !new_filename) if ( strcmp( value, gsdmlfile_p) != 0 && !new_filename)
return PB__GSDMLFILEMISMATCH; return PB__GSDMLFILEMISMATCH;
} }
else
strncpy( data->gsdmlfile, value, sizeof(data->gsdmlfile));
} }
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));
......
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