We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05daa2e + 956d0fc commit b5820c6Copy full SHA for b5820c6
libEDSsharp/CanOpenXDD.cs
@@ -517,10 +517,8 @@ public ISO15745ProfileContainer convert(EDSsharp eds)
517
518
AppLayer.CANopenObjectList.CANopenObject[count].CANopenSubObject[subcount].edseditor_extension_notifyonchange = subod.prop.CO_flagsPDO;
519
520
- if (od.objecttype == ObjectType.ARRAY && count != 0)
521
- bytes = BitConverter.GetBytes((UInt16)od.datatype);
522
- else
523
- 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);
+
524
Array.Reverse(bytes);
525
526
// hack - special handling for rrw / rww access type
0 commit comments