Skip to content

class_id.information_code value is incorrect #7

@kverbyob

Description

@kverbyob

vrtgen version: 0.7.13

The value of the class_id.information_code yaml field seems to get stored in the packet_code variable instead of information_code.

diff --git a/src/vrtgen/parser/model/prologue.py b/src/vrtgen/parser/model/prologue.py
index e1337df..d4c570b 100644
--- a/src/vrtgen/parser/model/prologue.py
+++ b/src/vrtgen/parser/model/prologue.py
@@ -27,7 +27,7 @@ class ClassIdentifier(PackedStruct):
                 elif key == 'packet_code':
                     self.packet_code.value = val
                 elif key == 'information_code':
-                    self.packet_code.value = val
+                    self.information_code.value = val
                 else:
                     raise KeyError(val)
             except:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions