Skip to content

Commit

Permalink
bugfix of creation ODT_RECORD and ODT_ARRAY
Browse files Browse the repository at this point in the history
  • Loading branch information
trojanobelix committed Nov 18, 2022
1 parent 634dee9 commit 029e57e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libEDSsharp/CanOpenNodeExporter_V4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ private void Prepare(EDSsharp eds)
ODDefinesLong.Add($"#define {odname}_ENTRY_H{varName} &{odname}->list[{ODList.Count}]");

// object dictionary
if ((odObjectType == "ARRAY") || (odObjectType) == "RECORD")
odObjectType.Substring(0, 3);

ODList.Add($"{{0x{indexH}, 0x{subEntriesCount:X2}, ODT_{odObjectType}, &{odname}Objs.o_{varName}, NULL}}");

// count labels
Expand Down
6 changes: 6 additions & 0 deletions libEDSsharp/docs/libEDSsharp.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 029e57e

Please sign in to comment.