Commit bdb9eae0 authored by kliment's avatar kliment

Merge pull request #112 from tjhowse/master

Sends M21 whenever SD Upload or SD Print are used.
parents f63e3800 daf74897
...@@ -1206,6 +1206,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -1206,6 +1206,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.listing=0 self.listing=0
self.sdfiles=[] self.sdfiles=[]
self.recvlisteners+=[self.listfiles] self.recvlisteners+=[self.listfiles]
self.p.send_now("M21")
self.p.send_now("M20") self.p.send_now("M20")
def skein_func(self): def skein_func(self):
...@@ -1359,6 +1360,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -1359,6 +1360,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
return return
dlg=wx.TextEntryDialog(self, ("Enter a target filename in 8.3 format:"), _("Pick SD filename") ,dosify(self.filename)) dlg=wx.TextEntryDialog(self, ("Enter a target filename in 8.3 format:"), _("Pick SD filename") ,dosify(self.filename))
if dlg.ShowModal()==wx.ID_OK: if dlg.ShowModal()==wx.ID_OK:
self.p.send_now("M21")
self.p.send_now("M28 "+str(dlg.GetValue())) self.p.send_now("M28 "+str(dlg.GetValue()))
self.recvlisteners+=[self.uploadtrigger] self.recvlisteners+=[self.uploadtrigger]
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment