From adcc77afe3fb48265fe2bd8b1fa926bcb1cd6244 Mon Sep 17 00:00:00 2001 From: Michael Rest Date: Tue, 16 May 2017 09:33:10 +0200 Subject: [PATCH] Fixed Ladungstraeger Label --- PD09_tel.py | 2 +- PD99_tel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PD09_tel.py b/PD09_tel.py index ca68e76..5420198 100755 --- a/PD09_tel.py +++ b/PD09_tel.py @@ -221,8 +221,8 @@ def fromstring (data): tel.attrib['tmutter'] = (data [250] << 8) + data [251] except: print ("Debug-tmutter", data[250], data[251]) - tel.attrib['ladungstraeger'] = data [102:104].decode () + tel.attrib['ladungstraeger'] = '' return tel diff --git a/PD99_tel.py b/PD99_tel.py index 080ff94..32e5d97 100755 --- a/PD99_tel.py +++ b/PD99_tel.py @@ -56,7 +56,7 @@ class TEL_PD99 (TELEGRAM): self.attrib['endts'] = '2000-02-02 02:02:02' self.attrib['dmc'] = '1234' self.attrib['bauteilstatus'] = '0' - self.attrib['ladungstrager'] = '0' + self.attrib['ladungstraeger'] = '0' self.attrib['aufnahme'] = 0 self.len = 2220907