Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrof committed Apr 27, 2024
1 parent 5102c85 commit 22e673d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libEDSsharp/CanOpenXDD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public ISO15745ProfileContainer convert(EDSsharp eds)

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

if (od.objecttype == ObjectType.ARRAY)
if (od.objecttype == ObjectType.ARRAY && count != 0)
bytes = BitConverter.GetBytes((UInt16)od.datatype);
else
bytes = BitConverter.GetBytes((UInt16)subod.datatype);
Expand Down

0 comments on commit 22e673d

Please sign in to comment.