Skip to content

Commit

Permalink
Echo what is typed when "send_on_enter" device monitor filter is used…
Browse files Browse the repository at this point in the history
… // Resolve #3452
  • Loading branch information
ivankravets committed Apr 25, 2020
1 parent 629f23c commit 60f2859
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ PlatformIO Core 4
4.3.2 (2020-??-??)
~~~~~~~~~~~~~~~~~~

* New `PIO Account <https://docs.platformio.org/page/plus/pio-account.html>`__ with "username" and profile support
* New `Account Management System <https://docs.platformio.org/page/plus/pio-account.html>`__ with "username" and social providers (preview)
* Open source `PIO Remote <http://docs.platformio.org/page/plus/pio-remote.html>`__ client
* Echo what is typed when ``send_on_enter`` device monitor filter <https://docs.platformio.org/page/projectconf/section_env_monitor.html#monitor-filters>`__ is used (`issue #3452 <https://github.com/platformio/platformio-core/issues/3452>`_)
* Fixed PIO Unit Testing for Zephyr RTOS
* Fixed UnicodeDecodeError on Windows when network drive (NAS) is used (`issue #3417 <https://github.com/platformio/platformio-core/issues/3417>`_)
* Fixed an issue when saving libraries in new project results in error "No option 'lib_deps' in section" (`issue #3442 <https://github.com/platformio/platformio-core/issues/3442>`_)
Expand Down
3 changes: 3 additions & 0 deletions platformio/commands/device/filters/send_on_enter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import click

from platformio.commands.device import DeviceMonitorFilter


Expand All @@ -23,6 +25,7 @@ def __init__(self, *args, **kwargs):
self._buffer = ""

def tx(self, text):
click.echo(text, nl=False)
self._buffer += text
if self._buffer.endswith("\r\n"):
text = self._buffer[:-2]
Expand Down

0 comments on commit 60f2859

Please sign in to comment.