Skip to content

Commit

Permalink
wpeditor: fixed load wp file button
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jul 18, 2023
1 parent 9a0b1f5 commit 93aa100
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions MAVProxy/modules/mavproxy_misseditor/mission_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,6 @@ def run(self):

elif event_type == me_event.MEE_LOAD_WP_FILE:
self.module('wp').cmd_wp(['load',event.get_arg("path")])
#Wait for the other thread to finish loading waypoints.
#don't let this loop run forever in case we have a lousy
#link to the plane
i = 0
while (i < 10 and
self.module('wp').loading_waypoints):
time.sleep(1)
i = i + 1

#don't modify queue while in the middile of processing it:
request_read_after_processing_queue = True

elif event_type == me_event.MEE_SAVE_WP_FILE:
self.module('wp').cmd_wp(['save',event.get_arg("path")])
Expand Down

0 comments on commit 93aa100

Please sign in to comment.