From 33bcf284a9fe922b11f3c994f0986d1eedc89da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 22 May 2013 18:20:21 +0200 Subject: [PATCH] Always send all lower case filenames to the printer for sd card commands --- octoprint/util/comm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/octoprint/util/comm.py b/octoprint/util/comm.py index 207eb74..553d9c9 100644 --- a/octoprint/util/comm.py +++ b/octoprint/util/comm.py @@ -797,7 +797,7 @@ class MachineCom(object): self._sdFile = None self._sdFilePos = 0 - self.sendCommand("M23 %s" % filename) + self.sendCommand("M23 %s" % filename.lower()) def printSdFile(self): if not self.isOperational() or self.isPrinting(): @@ -848,15 +848,15 @@ class MachineCom(object): if self.isPrinting() or self.isPaused(): return self._changeState(self.STATE_RECEIVING_FILE) - self.sendCommand("M28 %s" % filename) + self.sendCommand("M28 %s" % filename.lower()) def endSdFileTransfer(self, filename): - self.sendCommand("M29 %s" % filename) + self.sendCommand("M29 %s" % filename.lower()) self._changeState(self.STATE_OPERATIONAL) self.sendCommand("M20") def deleteSdFile(self, filename): - self.sendCommand("M30 %s" % filename) + self.sendCommand("M30 %s" % filename.lower()) self.sendCommand("M20") def getExceptionString():