Skip to content

Commit 7e3065e

Browse files
committed
Set default value to all subs without default value
1 parent 07966bd commit 7e3065e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

EDSEditorGUI/DeviceODView.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,13 @@ private void ObjectSave()
531531
{
532532
od.prop.CO_accessSRDO = AccessSRDO.no;
533533
}
534+
for (ushort i = 1; i < od.parent.Nosubindexes; i++) {
535+
if (od.parent.subobjects[i].defaultvalue == "") {
536+
od.parent.subobjects[i].defaultvalue = textBox_defaultValue.Text;
537+
}
538+
}
534539

535-
od.defaultvalue = textBox_defaultValue.Text;
536-
od.actualvalue = textBox_actualValue.Text;
540+
// od.actualvalue = textBox_actualValue.Text;
537541
od.HighLimit = textBox_highLimit.Text;
538542
od.LowLimit = textBox_lowLimit.Text;
539543

0 commit comments

Comments
 (0)