Skip to content

Commit

Permalink
change missing Baudrate to BaudRate
Browse files Browse the repository at this point in the history
Following the changes done #304, #305
  • Loading branch information
af-silva authored Mar 18, 2022
1 parent 3d57a1c commit 074cbbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions canopen/objectdictionary/eds.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def import_eds(source, node_id):
pass

if eds.has_section("DeviceComissioning"):
od.bitrate = int(eds.get("DeviceComissioning", "Baudrate")) * 1000
od.bitrate = int(eds.get("DeviceComissioning", "BaudRate")) * 1000
od.node_id = int(eds.get("DeviceComissioning", "NodeID"), 0)

for section in eds.sections():
Expand Down Expand Up @@ -413,7 +413,7 @@ def export_record(var, eds):
if device_commisioning and (od.bitrate or od.node_id):
eds.add_section("DeviceComissioning")
if od.bitrate:
eds.set("DeviceComissioning", "Baudrate", int(od.bitrate / 1000))
eds.set("DeviceComissioning", "BaudRate", int(od.bitrate / 1000))
if od.node_id:
eds.set("DeviceComissioning", "NodeID", int(od.node_id))

Expand Down

0 comments on commit 074cbbc

Please sign in to comment.