From ed061333a3bf0200792e19a6ac8216dc1c25338c Mon Sep 17 00:00:00 2001 From: Daniel Matthes Date: Fri, 4 May 2018 17:27:27 +0200 Subject: [PATCH] =?UTF-8?q?Function=20pymetawear/modules/base.py=20?= =?UTF-8?q?=E2=80=93=20data=5Freceived.set()=20to=20functions=20=5Funknown?= =?UTF-8?q?=5Fentry=20and=20=5Funhandled=5Fentry=20added=20=E2=86=92=20oth?= =?UTF-8?q?erwise=20the=20programm=20crashes=20for=20example=20if=20many?= =?UTF-8?q?=20unknown=20entries=20are=20comming=20in=20for=20a=20long=20ti?= =?UTF-8?q?me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pymetawear/modules/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pymetawear/modules/base.py b/pymetawear/modules/base.py index 6949c33..4df569f 100644 --- a/pymetawear/modules/base.py +++ b/pymetawear/modules/base.py @@ -210,11 +210,13 @@ def _unknown_entry(self, id, epoch, data, length): :param length (int): """ + self.data_received.set() if self._debug: log.debug('Unknown Entry: ID: {0}, epoch: {1}, ' 'data: {2}, Length: {3}'.format(id, epoch, bytearray(data), length)) def _unhandled_entry(self, data): + self.data_received.set() if self._debug: log.debug('Unhandled Entry: ' + str(data))