From ca03bdb26041fdacceb192abcd63fc8180ce793c Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 3 Oct 2025 06:46:56 +0300 Subject: [PATCH] pyflix: partially fix wireless downloading logs --- tools/pyflix/flix.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/pyflix/flix.py b/tools/pyflix/flix.py index 6b9bcd6..2ee9729 100644 --- a/tools/pyflix/flix.py +++ b/tools/pyflix/flix.py @@ -370,7 +370,9 @@ class Flix: self.mavlink.serial_control_send(0, 0, 0, 0, len(cmd_bytes), cmd_bytes) if not wait_response: return '' - response = self.wait('print_full', timeout=0.1, value=lambda text: text.startswith(response_prefix)) + timeout = 0.1 + if cmd == 'log': timeout = 10 # log download may take more time + response = self.wait('print_full', timeout=timeout, value=lambda text: text.startswith(response_prefix)) return response[len(response_prefix):].strip() except TimeoutError: continue