Skip to content

Commit

Permalink
IMPROVEMENT: Add timeout on parameter reload
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Jun 1, 2024
1 parent 70c1ef8 commit 0472101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MethodicConfigurator/backend_flightcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0472101

Please sign in to comment.