ignoring trailing \xff in byte stream
This commit is contained in:
parent
761aaccb3f
commit
007b3ea089
@ -116,7 +116,7 @@ class DSMRProtocol(asyncio.Protocol):
|
||||
|
||||
def data_received(self, data):
|
||||
"""Add incoming data to buffer."""
|
||||
data = data.decode("ascii")
|
||||
data = data.decode("ascii", errors="ignore")
|
||||
self._active = True
|
||||
self.log.debug("received data: %s", data)
|
||||
self.telegram_buffer.append(data)
|
||||
|
Loading…
Reference in New Issue
Block a user