Query byte position on cancel of SD print

This commit is contained in:
Gina Häußge 2016-11-15 11:55:09 +01:00
parent 58835cfd8e
commit e6c4e0a808

View file

@ -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: