Skip to content

Commit

Permalink
BUGFIX: "Show only changed parameters" was not showing any parameters…
Browse files Browse the repository at this point in the history
… when no FC was connected
  • Loading branch information
amilcarlucas committed Apr 15, 2024
1 parent 958fbd4 commit 01572c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MethodicConfigurator/frontend_tkinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def repopulate_parameter_table(self, selected_file):
# Different parameters based on the thresholdfile_value
different_params = {param_name: file_value for param_name, file_value in
self.local_filesystem.file_parameters[selected_file].items()
if param_name in fc_parameters and not is_within_tolerance(fc_parameters[param_name],
float(file_value.value))}
if param_name not in fc_parameters or (param_name in fc_parameters and \
not is_within_tolerance(fc_parameters[param_name], float(file_value.value)))}
if not different_params and self.show_only_differences.get():
logging_info("No different parameters found in %s. Skipping...", selected_file)
messagebox.showinfo("ArduPilot methodic configurator",
Expand Down

0 comments on commit 01572c5

Please sign in to comment.