Limit SD transfers to broader machinecode type
See jneilliii/OctoPrint-SmoothiewareConfig#1
This commit is contained in:
parent
364d692db2
commit
9b3c1947d9
1 changed files with 1 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ def uploadGcodeFile(target):
|
||||||
Depending on the file's destination triggers either streaming to SD card or directly calls selectAndOrPrint.
|
Depending on the file's destination triggers either streaming to SD card or directly calls selectAndOrPrint.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if destination == FileDestinations.SDCARD and octoprint.filemanager.valid_file_type(filename, "gcode"):
|
if destination == FileDestinations.SDCARD and octoprint.filemanager.valid_file_type(filename, "machinecode"):
|
||||||
return filename, printer.add_sd_file(filename, absFilename, selectAndOrPrint)
|
return filename, printer.add_sd_file(filename, absFilename, selectAndOrPrint)
|
||||||
else:
|
else:
|
||||||
selectAndOrPrint(filename, absFilename, destination)
|
selectAndOrPrint(filename, absFilename, destination)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue