Skip to content

Commit

Permalink
fix aircraft driver check
Browse files Browse the repository at this point in the history
  • Loading branch information
Santi871 committed Jun 18, 2019
1 parent 2b7a8f4 commit c171716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def enter_missions(self, msns):
def enter_all(self, profile):
self.handler.set_driver(profile.aircraft)
sleep(int(self.settings['PREFERENCES'].get('Grace_Period', 5)))
if type(self.handler) == HornetDriver:
if type(self.handler.press) == HornetDriver:
self.handler.enter_missions(profile.waypoints.get("MSN", dict()))
sleep(1)
self.handler.enter_waypoints(profile.waypoints_as_list, profile.sequences_dict)

0 comments on commit c171716

Please sign in to comment.