fix issue with last PR that broke the ability to recognize currently printing file.
This commit is contained in:
jneilliii 2024-02-12 21:35:09 -05:00
parent ff58636e41
commit 3d0cc26147
2 changed files with 2 additions and 3 deletions

View File

@ -171,8 +171,7 @@ class BambuPrinter:
self._sdPrintingPausedSemaphore.clear() self._sdPrintingPausedSemaphore.clear()
self._sdPrintStarting = False self._sdPrintStarting = False
if not self._sdPrinting: if not self._sdPrinting:
filename = print_job.get("gcode_file") filename = print_job.get("subtask_name")
# TODO: swap this out to use 8 dot 3 name based on long name/path
self._selectSdFile(filename) self._selectSdFile(filename)
self._startSdPrint(from_printer=True) self._startSdPrint(from_printer=True)

View File

@ -14,7 +14,7 @@ plugin_package = "octoprint_bambu_printer"
plugin_name = "OctoPrint-BambuPrinter" plugin_name = "OctoPrint-BambuPrinter"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.0.11" plugin_version = "0.0.12"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module # module