We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd2d1a7 + 25394c3 commit bb6b528Copy full SHA for bb6b528
canopen/objectdictionary/eds.py
@@ -138,7 +138,9 @@ def import_from_node(node_id, network):
138
139
140
def _convert_variable(node_id, var_type, value):
141
- if var_type in objectdictionary.DATA_TYPES:
+ if var_type in (objectdictionary.OCTET_STRING, objectdictionary.DOMAIN):
142
+ return bytes.fromhex(value)
143
+ elif var_type in (objectdictionary.VISIBLE_STRING, objectdictionary.UNICODE_STRING):
144
return value
145
elif var_type in objectdictionary.FLOAT_TYPES:
146
return float(value)
0 commit comments