generated from pufereq/python-template
fix(message.py): fix error on TELEMETRY msg
This commit is contained in:
@@ -226,6 +226,8 @@ class Message:
|
|||||||
match category:
|
match category:
|
||||||
case Category.CONTROL:
|
case Category.CONTROL:
|
||||||
action = ControlAction(action_str)
|
action = ControlAction(action_str)
|
||||||
|
case Category.TELEMETRY:
|
||||||
|
action = TelemetryAction(action_str)
|
||||||
case _:
|
case _:
|
||||||
raise ValueError(f"Unknown category: {category}")
|
raise ValueError(f"Unknown category: {category}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user