From ed3edb5fddb0ffb44d35f355e5d6cc71cb64438c Mon Sep 17 00:00:00 2001 From: Corentin de Massol Date: Wed, 18 Oct 2023 14:44:02 +0200 Subject: [PATCH] add_swo_viewer.py: export PYTHONUNBUFFERED to 1 to fix flushing the pipe when data is not printed. --- add_swo_viewer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/add_swo_viewer.py b/add_swo_viewer.py index 9cccfd8..0181a33 100644 --- a/add_swo_viewer.py +++ b/add_swo_viewer.py @@ -6,6 +6,7 @@ Import("env") def swo_viewer_task(*args, **kwargs): + os.environ['PYTHONUNBUFFERED'] = '1' print("Entrypoint") board = env.BoardConfig() platform = env.PioPlatform()