use gcode_file instead of subtask_name if it doesn't have 3mf extension
This commit is contained in:
jneilliii
2024-02-13 18:44:24 -05:00
parent 3d0cc26147
commit cb4b345aa7
2 changed files with 3 additions and 1 deletions

View File

@ -172,6 +172,8 @@ class BambuPrinter:
self._sdPrintStarting = False
if not self._sdPrinting:
filename = print_job.get("subtask_name")
if filename[-4:].lower() != ".3mf":
filename = print_job.get("gcode_file")
self._selectSdFile(filename)
self._startSdPrint(from_printer=True)