From e6c4e0a808e3ff25852787e4b2bc54cde3ee0e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 15 Nov 2016 11:55:09 +0100 Subject: [PATCH] Query byte position on cancel of SD print --- src/octoprint/util/comm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 4b18d68d..de7c8036 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -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: