Query byte position on cancel of SD print
This commit is contained in:
1 parent
58835cfd8e
commit
e6c4e0a808
1 file changed
+1
@@ -824,6 +824,7 @@ class MachineCom(object):
|
||||
|
||||
if self.isSdFileSelected():
|
||||
self.sendCommand("M25") # pause print
|
||||
self.sendCommand("M27") # get current byte position in file
|
||||
self.sendCommand("M26 S0") # reset position in file to byte 0
|
||||
if self._sd_status_timer is not None:
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user