From 24f91617d7f0992077cab9d16573ac6fe2a9b9c0 Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Fri, 16 Aug 2019 11:24:57 +0800 Subject: [PATCH] idf_monitor: fix the bug that idf_monitor not blocked when no log printed Inspired by @no1seman, @negativekelvin and @pglen on Github. (In post oder) Resolves https://github.com/espressif/esp-idf/issues/3884 --- tools/idf_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py index 5320149dbe..2076c012dc 100755 --- a/tools/idf_monitor.py +++ b/tools/idf_monitor.py @@ -490,7 +490,7 @@ class Monitor(object): item = self.cmd_queue.get_nowait() except queue.Empty: try: - item = self.event_queue.get(False, 0.001) + item = self.event_queue.get(True, 0.03) except queue.Empty: continue