Replace the \r\n sequence with \n in the processed response
This commit is contained in:
parent
2f63a861cb
commit
2598e2fb30
1 changed files with 4 additions and 0 deletions
|
@ -158,6 +158,10 @@ class Connection:
|
||||||
self._received_response = self._received_response[4:]
|
self._received_response = self._received_response[4:]
|
||||||
self._received_response = self._received_response.strip()
|
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()
|
self._response_received.set()
|
||||||
|
|
||||||
def wait_ready(self):
|
def wait_ready(self):
|
||||||
|
|
Loading…
Reference in a new issue