0.0.16
refresh file list if printing file not found in cached file list. potential fix for #9
This commit is contained in:
parent
48027f6008
commit
f37eadf3ea
@ -160,6 +160,8 @@ class BambuPrinter:
|
||||
fans = device_data.fans.__dict__
|
||||
speed = device_data.speed.__dict__
|
||||
|
||||
# self._logger.debug(device_data)
|
||||
|
||||
self.temp[0] = temperatures.get("nozzle_temp", 0.0)
|
||||
self.targetTemp[0] = temperatures.get("target_nozzle_temp", 0.0)
|
||||
self.bedTemp = temperatures.get("bed_temp", 0.0)
|
||||
@ -711,8 +713,12 @@ class BambuPrinter:
|
||||
|
||||
file = self._getSdFileData(filename)
|
||||
if file is None:
|
||||
self._send(f"{filename} open failed")
|
||||
return
|
||||
self._listSd(incl_long=True, incl_timestamp=True)
|
||||
self._sendOk()
|
||||
file = self._getSdFileData(filename)
|
||||
if file is None:
|
||||
self._send(f"{filename} open failed")
|
||||
return
|
||||
|
||||
if self._selectedSdFile == file["path"] and check_already_open:
|
||||
return
|
||||
|
2
setup.py
2
setup.py
@ -14,7 +14,7 @@ plugin_package = "octoprint_bambu_printer"
|
||||
plugin_name = "OctoPrint-BambuPrinter"
|
||||
|
||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
||||
plugin_version = "0.0.15"
|
||||
plugin_version = "0.0.16"
|
||||
|
||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||
# module
|
||||
|
Loading…
x
Reference in New Issue
Block a user