Replace the \r\n sequence with \n in the processed response

This commit is contained in:
Fabio Manganiello 2020-01-18 18:26:23 +01:00
parent 2f63a861cb
commit 2598e2fb30
1 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,10 @@ class Connection:
self._received_response = self._received_response[4:]
self._received_response = self._received_response.strip()
# Replace \r\n serial end-of-line with \n
self._received_response = self._received_response.replace('\r\n', '\n')
# Notify the listeners
self._response_received.set()
def wait_ready(self):