Skip to content

Commit

Permalink
Fix named tuple for integrity status fault (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbrannon authored Feb 12, 2024
2 parents 366dae6 + 4215686 commit c403ebf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/fusion_engine_client/messages/fault_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ class CoComLimit(NamedTuple):
"value" / AutoEnum(Int8ul, CoComType),
)

class IntegrityStatus(NamedTuple):
class IntegerVal(NamedTuple):
"""!
@brief Integrity status specifier.
@brief Integer value specifier.
"""
value: Int8ul
value: int = 0

IntegrityStatusConstruct = Struct(
UInt8Construct = Struct(
"value" / Int8ul,
)

Expand Down Expand Up @@ -174,8 +174,8 @@ class QuectelTest(_class_gen.Bool):
"""
pass

@_class_gen.create_payload_class(FaultType.INTEGRITY_STATUS, _class_gen.IntegrityStatusConstruct)
class IntegrityStatus(_class_gen.IntegrityStatus):
@_class_gen.create_payload_class(FaultType.INTEGRITY_STATUS, _class_gen.UInt8Construct)
class IntegrityStatus(_class_gen.IntegerVal):
"""!
@brief Simulate a specified integrity status failure (intended for factory test purposes only).
"""
Expand Down

0 comments on commit c403ebf

Please sign in to comment.