Skip to content

Commit 1b12c97

Browse files
Add support for hex node ID in DCF
Fixes #221
1 parent db4e6d0 commit 1b12c97

File tree

1 file changed

+1
-1
lines changed
  • canopen/objectdictionary

1 file changed

+1
-1
lines changed

canopen/objectdictionary/eds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def import_eds(source, node_id):
3333
od = objectdictionary.ObjectDictionary()
3434
if eds.has_section("DeviceComissioning"):
3535
od.bitrate = int(eds.get("DeviceComissioning", "Baudrate")) * 1000
36-
od.node_id = int(eds.get("DeviceComissioning", "NodeID"))
36+
od.node_id = int(eds.get("DeviceComissioning", "NodeID"), 0)
3737

3838
for section in eds.sections():
3939
# Match dummy definitions

0 commit comments

Comments
 (0)