Skip to content

Commit

Permalink
Function pymetawear/modules/base.py – data_received.set() to function…
Browse files Browse the repository at this point in the history
…s _unknown_entry and _unhandled_entry added → otherwise the programm crashes for example if many unknown entries are comming in for a long time
  • Loading branch information
dmatthes1982 authored and hbldh committed May 4, 2018
1 parent 8334972 commit ed06133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymetawear/modules/base.py
Expand Up @@ -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))

Expand Down

0 comments on commit ed06133

Please sign in to comment.