From b8f41196cf3ab010a8c1ca0a3db3439b01915154 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Mon, 18 Apr 2016 12:13:04 +0200 Subject: [PATCH] Added mark_begin/mark_end around python version sending. --- lib/python/labcomm2014/LabComm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/python/labcomm2014/LabComm.py b/lib/python/labcomm2014/LabComm.py index 9632a2d..2ac3524 100644 --- a/lib/python/labcomm2014/LabComm.py +++ b/lib/python/labcomm2014/LabComm.py @@ -775,9 +775,11 @@ class Encoder(Codec): self.writer = writer self.version = version if self.version == DEFAULT_VERSION: + self.writer.mark_begin(None, None) self.encode_type(i_VERSION) with length_encoder(self) as e: e.encode_string(version) + self.writer.mark_end(None, None) elif self.version == None: pass # Don't send version on a length encoder else: -- GitLab