Skip to content

Commit

Permalink
Add support for hex node ID in DCF
Browse files Browse the repository at this point in the history
Fixes #221
  • Loading branch information
christiansandberg committed Feb 20, 2021
1 parent db4e6d0 commit 1b12c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canopen/objectdictionary/eds.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def import_eds(source, node_id):
od = objectdictionary.ObjectDictionary()
if eds.has_section("DeviceComissioning"):
od.bitrate = int(eds.get("DeviceComissioning", "Baudrate")) * 1000
od.node_id = int(eds.get("DeviceComissioning", "NodeID"))
od.node_id = int(eds.get("DeviceComissioning", "NodeID"), 0)

for section in eds.sections():
# Match dummy definitions
Expand Down

0 comments on commit 1b12c97

Please sign in to comment.