From 6f9985125df9f35252354c0f4e2938a17010f066 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 15 Jun 2022 14:30:05 +0300 Subject: [PATCH] Fixed an issue when the monitor filters were not applied in their order // Resolve #4320 --- platformio/device/monitor/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/device/monitor/terminal.py b/platformio/device/monitor/terminal.py index 9a043b6e..05c241c9 100644 --- a/platformio/device/monitor/terminal.py +++ b/platformio/device/monitor/terminal.py @@ -99,7 +99,7 @@ def new_terminal(options): new_serial_instance(options), echo=options["echo"], eol=options["eol"].lower(), - filters=options["filters"] or ["default"], + filters=list(reversed(options["filters"] or ["default"])), ) term.exit_character = chr(options["exit_char"]) term.menu_character = chr(options["menu_char"])