Query byte position on cancel of SD print
This commit is contained in:
parent
58835cfd8e
commit
e6c4e0a808
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue