Skip to content

Commit e3d2155

Browse files
authored
objectdictionary: Fix incorrect ParameterValue when export_dcf (#417)
1 parent 36900b1 commit e3d2155

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
@@ -383,7 +383,7 @@ def export_variable(var, eds):
383383
eds.set(section, "ParameterValue", var.value_raw)
384384
elif getattr(var, 'value', None) is not None:
385385
eds.set(section, "ParameterValue",
386-
_revert_variable(var.data_type, var.default))
386+
_revert_variable(var.data_type, var.value))
387387

388388
eds.set(section, "DataType", "0x%04X" % var.data_type)
389389
eds.set(section, "PDOMapping", hex(var.pdo_mappable))

0 commit comments

Comments
 (0)