0.0.16
refresh file list if printing file not found in cached file list. potential fix for #9
This commit is contained in:
		| @@ -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) | ||||
| @@ -709,6 +711,10 @@ class BambuPrinter: | ||||
|         if filename.startswith("/"): | ||||
|             filename = filename[1:] | ||||
|  | ||||
|         file = self._getSdFileData(filename) | ||||
|         if file is None: | ||||
|             self._listSd(incl_long=True, incl_timestamp=True) | ||||
|             self._sendOk() | ||||
|             file = self._getSdFileData(filename) | ||||
|             if file is None: | ||||
|                 self._send(f"{filename} open failed") | ||||
|   | ||||
							
								
								
									
										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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user