mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Do not send CR+NL for "send_on_enter" device monitor filter
This commit is contained in:
@ -24,8 +24,8 @@ class SendOnEnter(DeviceMonitorFilter):
|
||||
|
||||
def tx(self, text):
|
||||
self._buffer += text
|
||||
if "\r\n" in self._buffer:
|
||||
text = self._buffer
|
||||
if self._buffer.endswith("\r\n"):
|
||||
text = self._buffer[:-2]
|
||||
self._buffer = ""
|
||||
return text
|
||||
return ""
|
||||
|
Reference in New Issue
Block a user