From 9077b605ecf6a1f51661c063bf7ec91ec78e689d Mon Sep 17 00:00:00 2001 From: GenoJAFord Date: Thu, 29 Jul 2021 18:23:28 +0000 Subject: [PATCH 1/2] parse the --new_payload-format option before using it --- openxc/tools/control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openxc/tools/control.py b/openxc/tools/control.py index 5a8fe77..ca87ed3 100644 --- a/openxc/tools/control.py +++ b/openxc/tools/control.py @@ -179,6 +179,8 @@ def main(): interface = interface_class(**interface_kwargs) interface.start() + handle_set_command(arguments, interface) + if arguments.command == "version": version(interface) elif arguments.command == "platform": From cc6765c86959e0f9df0e227364a3c2c022f5a920 Mon Sep 17 00:00:00 2001 From: garindae Date: Mon, 2 Aug 2021 15:31:16 -0400 Subject: [PATCH 2/2] Protobuf format argument now properly streaming out protobuf binary --- openxc/sources/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openxc/sources/base.py b/openxc/sources/base.py index 1192c07..733bed7 100644 --- a/openxc/sources/base.py +++ b/openxc/sources/base.py @@ -40,6 +40,7 @@ def __init__(self, callback=None, log_mode=None, payload_format=None): self._streamer = None self._formatter = None self._format = payload_format + self.format = payload_format # Added 7/30/2021 to fix protobuf streaming out self.logger = SourceLogger(self, log_mode)