From 89d972ff40e059909d86d79bbbb564fe0fa3cb93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 22 Feb 2015 15:15:45 +0100 Subject: [PATCH] Always make sure to (re)set file position to the beginning when starting SD card prints Closes #780 (cherry picked from commit 5c35a28) --- src/octoprint/util/comm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 00473b42..67539cb0 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -390,9 +390,8 @@ class MachineCom(object): }) if self.isSdFileSelected(): - if wasPaused: - self.sendCommand("M26 S0") - self._currentFile.setFilepos(0) + self.sendCommand("M26 S0") + self._currentFile.setFilepos(0) self.sendCommand("M24") else: self._sendNext()