Skip to content

Commit

Permalink
IMPROVEMENT: Display less error messages, it confuses users
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed May 23, 2024
1 parent 2e2ea4a commit 5c4123f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MethodicConfigurator/ardupilot_methodic_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def main():

error_str = flight_controller.connect(args.device)
if error_str:
logging_error(error_str)
if "No serial ports found" not in error_str:
logging_error(error_str)
conn_sel_window = ConnectionSelectionWindow(flight_controller, error_str)
conn_sel_window.root.mainloop()

Expand All @@ -90,7 +91,6 @@ def main():
files = list(local_filesystem.file_parameters.keys())

if not files:
logging_error("No intermediate parameter files found in %s.", args.vehicle_dir)
vehicle_dir_window = VehicleDirectorySelectionWindow(local_filesystem)
vehicle_dir_window.root.mainloop()

Expand Down

0 comments on commit 5c4123f

Please sign in to comment.