Skip to content

Commit

Permalink
Fix CANopenNode TPDO compatibilityEntry naming and index.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikbrixandersen committed Oct 10, 2019
1 parent 821eedb commit ceaac9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libEDSsharp/CanOpenNodeExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ private void fixcompatentry()
if (!od.Containssubindex(0x04))
{
compatfixed = true;
ODentry compatability = new ODentry("comparability Entry", 0x05, DataType.UNSIGNED8, "0", EDSsharp.AccessType.ro, PDOMappingType.no);
od.subobjects.Add(0x04, compatability);
ODentry compatibility = new ODentry("compatibility entry", idx, DataType.UNSIGNED8, "0", EDSsharp.AccessType.ro, PDOMappingType.no, od);
od.subobjects.Add(0x04, compatibility);
}
}
}
Expand Down

0 comments on commit ceaac9c

Please sign in to comment.