Commit 63a51915 authored by Marcus Nordenberg's avatar Marcus Nordenberg

Profinet Configurator fix

Properly set the unsigned/signed 8bit values
parent 867fdfb6
......@@ -2338,12 +2338,12 @@ int pn_gsdml::string_to_datavalue(gsdml_eValueDataType datatype, void* value,
case gsdml_eValueDataType_Integer8:
if (sscanf(str, "%hhd", (char*)value) != 1)
return PB__SYNTAX;
value_reversed_endianess = value;
*(char*)value_reversed_endianess = *(char*)value;
break;
case gsdml_eValueDataType_Unsigned8:
if (sscanf(str, "%hhu", (unsigned char*)value) != 1)
return PB__SYNTAX;
value_reversed_endianess = value;
*(unsigned char*)value_reversed_endianess = *(unsigned char*)value;
break;
case gsdml_eValueDataType_Integer16: {
short v;
......
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