Skip to content

Commit

Permalink
FIX: Fallback to param-by-param download if MAVFTP fails
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Jan 28, 2025
1 parent 472c3a3 commit 778956a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ardupilot_methodic_configurator/backend_flightcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ def download_params(
if self.info.is_mavftp_supported:
logging_info(_("MAVFTP is supported by the %s flight controller"), comport_device)

return self.download_params_via_mavftp(progress_callback)
param_dict, default_param_dict = self.download_params_via_mavftp(progress_callback)
if param_dict:
return param_dict, default_param_dict

logging_info(_("MAVFTP is not supported by the %s flight controller, fallback to MAVLink"), comport_device)
return self.__download_params_via_mavlink(progress_callback), {}
Expand Down

0 comments on commit 778956a

Please sign in to comment.