Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions libEDSsharp/CanOpenXDD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,8 @@ public ISO15745ProfileContainer convert(EDSsharp eds)

AppLayer.CANopenObjectList.CANopenObject[count].CANopenSubObject[subcount].edseditor_extension_notifyonchange = subod.prop.CO_flagsPDO;

if (od.objecttype == ObjectType.ARRAY && count != 0)
bytes = BitConverter.GetBytes((UInt16)od.datatype);
else
bytes = BitConverter.GetBytes((UInt16)subod.datatype);
bytes = (subod.datatype == DataType.UNKNOWN && od.parent != null) ? BitConverter.GetBytes((UInt16)od.parent.datatype) : BitConverter.GetBytes((UInt16)subod.datatype);

Array.Reverse(bytes);

// hack - special handling for rrw / rww access type
Expand Down
Loading