Changed renaming to sd filenames to also work properly with very short names (and names with more .) as at least Marlin seems to hiccup on something like "file.gco.gco"
This commit is contained in:
parent
4ea2345eda
commit
6b2912b0e2
1 changed files with 4 additions and 1 deletions
|
|
@ -494,7 +494,10 @@ class Printer():
|
|||
def streamSdFile(self, filename, path):
|
||||
if not self._comm or self._comm.isBusy():
|
||||
return
|
||||
self._comm.startFileTransfer(path, filename[:8].lower() + ".gco")
|
||||
sdFilename = filename[:filename.find(".")].lower()
|
||||
if len(sdFilename) > 8:
|
||||
sdFilename = sdFilename[:8]
|
||||
self._comm.startFileTransfer(path, sdFilename + ".gco")
|
||||
|
||||
def deleteSdFile(self, filename):
|
||||
if not self._comm:
|
||||
|
|
|
|||
Loading…
Reference in a new issue