Skip to content

objecttype ODEntry constructor for array subobjects #163

@pettaa123

Description

@pettaa123

Describe the bug
ODentry constructor for array subobjects duplicate objecttype set.

eds.cs in libEDSSharp line: 1127

    /// <summary>
    /// ODEntry constructor for array subobjects
    /// </summary>
    /// <param name="parameter_name"></param>
    /// <param name="index"></param>
    /// <param name="nosubindex"></param>
    public ODentry(string parameter_name,UInt16 index, byte nosubindex)
    {
        this.parameter_name = parameter_name;
        this.objecttype = ObjectType.ARRAY; <============
        this.Index = index;
        //this.nosubindexes = nosubindex;
        this.objecttype = ObjectType.VAR;  <=============
    }

Version used
latest main

Expected behavior
Dunno, maybe this.objecttype = ObjectType.VAR only?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions