Commit c4251c19 authored by tjhowse's avatar tjhowse

SD Upload and SD Print buttons send an M21.

Automatically attempts to initialise the SD card whenever either of the SD
card related buttons are used.
parent f63e3800
......@@ -1206,7 +1206,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.listing=0
self.sdfiles=[]
self.recvlisteners+=[self.listfiles]
self.p.send_now("M20")
self.p.send_now("M21")
self.p.send_now("M20")
def skein_func(self):
try:
......@@ -1359,6 +1360,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
return
dlg=wx.TextEntryDialog(self, ("Enter a target filename in 8.3 format:"), _("Pick SD filename") ,dosify(self.filename))
if dlg.ShowModal()==wx.ID_OK:
self.p.send_now("M21")
self.p.send_now("M28 "+str(dlg.GetValue()))
self.recvlisteners+=[self.uploadtrigger]
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