From 5c35a288a339147bc62c7e440b6da85247b2627b 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 --- 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 caacd08e..f7886fd6 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -407,9 +407,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()