From 7a68893ff08c60d0973b6bebe119c1303d812375 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 1 Apr 2017 22:54:11 +0100 Subject: [PATCH 1/1] wip, fixes --- hippotat/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hippotat/__init__.py b/hippotat/__init__.py index 82f0634..4cc9e70 100644 --- a/hippotat/__init__.py +++ b/hippotat/__init__.py @@ -163,8 +163,9 @@ class SlipStreamDecoder(): def inputdata(self, data): #print('SLIP-GOT ', repr(data)) - self._buffer += data - packets = slip.decode(self._buffer) + data = self._buffer + data + self._buffer = b'' + packets = slip.decode(data) self._buffer = packets.pop() for packet in packets: self._maybe_packet(packet) -- 2.30.2