From f6d4218e57ebd739cdc5157744480885e0574063 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 17 Jul 2019 11:22:50 +0100 Subject: [PATCH] fix in bitwise output --- src/RegisterDatapoint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/RegisterDatapoint.py b/src/RegisterDatapoint.py index 5a3e32c..e13e2c7 100644 --- a/src/RegisterDatapoint.py +++ b/src/RegisterDatapoint.py @@ -150,6 +150,10 @@ class DiscreteInputDatapoint(ReadOnlyDatapoint): self.type = 'discrete input' self.bitCount = bitCount + def __str__(self): + return ("[{0!s}, bitCount: {1}" + .format(super().__str__(), self.bitCount)) + def process(self, client, pubQueue): logger = logging.getLogger('DiscreteInputDatapoint') # perform read operation