From b2fc536ba82fe4655056a674575990a398fe945f Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Mon, 6 Apr 2015 09:13:02 -0700 Subject: [PATCH] Change SD file list so that it is case sensitive My bot at least, prefers it that way, since uploading to the SD happens over the air (FlashAir) and the bot uses case senstive lookup --- src/octoprint/util/comm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index a64bb3275..9b4d8ee47 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -643,13 +643,13 @@ class MachineCom(object): return self._changeState(self.STATE_TRANSFERING_FILE) - self.sendCommand("M28 %s" % filename.lower()) + self.sendCommand("M28 %s" % filename) def endSdFileTransfer(self, filename): if not self.isOperational() or self.isBusy(): return - self.sendCommand("M29 %s" % filename.lower()) + self.sendCommand("M29 %s" % filename) self._changeState(self.STATE_OPERATIONAL) self.refreshSdFiles() @@ -660,7 +660,7 @@ class MachineCom(object): # do not delete a file from sd we are currently printing from return - self.sendCommand("M30 %s" % filename.lower()) + self.sendCommand("M30 %s" % filename) self.refreshSdFiles() def refreshSdFiles(self): @@ -822,7 +822,7 @@ class MachineCom(object): ##~~ SD file list # if we are currently receiving an sd file list, each line is just a filename, so just read it and abort processing if self._sdFileList and not "End file list" in line: - preprocessed_line = line.strip().lower() + preprocessed_line = line.strip() fileinfo = preprocessed_line.rsplit(None, 1) if len(fileinfo) > 1: # we might have extended file information here, so let's split filename and size and try to make them a bit nicer