From 0472101be757d7d7c94d27fe238cc6201c952570 Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Sat, 1 Jun 2024 16:35:20 +0200 Subject: [PATCH] IMPROVEMENT: Add timeout on parameter reload --- MethodicConfigurator/backend_flightcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MethodicConfigurator/backend_flightcontroller.py b/MethodicConfigurator/backend_flightcontroller.py index 39b127b..4809156 100644 --- a/MethodicConfigurator/backend_flightcontroller.py +++ b/MethodicConfigurator/backend_flightcontroller.py @@ -307,7 +307,7 @@ def __download_params_via_mavlink(self, progress_callback=None) -> Dict[str, flo # Loop to receive all parameters while True: try: - m = self.master.recv_match(type='PARAM_VALUE', blocking=True) + m = self.master.recv_match(type='PARAM_VALUE', blocking=True, timeout=10) if m is None: break message = m.to_dict()