Skip to content

Commit

Permalink
unloading errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshath-Singhal committed Aug 5, 2019
1 parent 81dfeba commit 8ab9a0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions MAVProxy/modules/mavproxy_paramedit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ def idle_task(self):
return
from MAVProxy.modules.mavproxy_paramedit import param_editor
self.pe_main = param_editor.ParamEditorMain(self.mpstate)
if self.pe_main:
if self.pe_main.needs_unloading:
self.needs_unloading = True
self.pe_main.idle_task()
if self.pe_main.needs_unloading:
self.needs_unloading = True

def mavlink_packet(self, m):
if self.pe_main:
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_paramedit/param_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(self, mpstate):
self.mavlink_message_queue_handler = threading.Thread(
target=self.mavlink_message_queue_handler)
self.mavlink_message_queue_handler.start()
#self.needs_unloading = False
self.needs_unloading = False

def mavlink_message_queue_handler(self):
while not self.time_to_quit:
Expand Down
4 changes: 2 additions & 2 deletions MAVProxy/modules/mavproxy_paramedit/param_editor_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def getinfo(self, name):

def Read_File(self, event): # wxGlade: ParamEditor.<event_handler>
fd = wx.FileDialog(self, "Open Parameter File", os.getcwd(), "",
"*.param|*", wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
"*.parm|*", wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
if (fd.ShowModal() == wx.ID_CANCEL):
return # user changed their mind...

Expand All @@ -375,7 +375,7 @@ def Read_File(self, event): # wxGlade: ParamEditor.<event_handler>
def Write_File(self, event): # wxGlade: ParamEditor.<event_handler>
fd = wx.FileDialog(self, "Save Parameter File", os.getcwd(),
os.path.basename(self.last_param_file_path),
"*.param|*", wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT)
"*.parm|*", wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT)
if (fd.ShowModal() == wx.ID_CANCEL):
return # user change their mind...

Expand Down

0 comments on commit 8ab9a0e

Please sign in to comment.