Skip to content

Commit

Permalink
Fix unused compat entry variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
robincornelius committed Oct 22, 2019
1 parent a74c228 commit 2f75a3f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions libEDSsharp/CanOpenNodeExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,8 @@ public void export(string folderpath, string filename, string gitVersion, EDSsha

}

//private bool compatfixed = false;
private void fixcompatentry()
{
// compatfixed = false;


// Handle the TPDO communication parameters in a special way, because of
// sizeof(OD_TPDOCommunicationParameter_t) != sizeof(CO_TPDOCommPar_t) in CANopen.c
// the existing CO_TPDOCommPar_t has a compatibility entry so we must export one regardless
Expand All @@ -86,7 +82,6 @@ private void fixcompatentry()

if (!od.Containssubindex(0x04))
{
//compatfixed = true;
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 2f75a3f

Please sign in to comment.