fix delete command
This commit is contained in:
jneilliii 2024-02-10 17:56:50 -05:00
parent 41dad23c49
commit 3d92d73879
2 changed files with 4 additions and 4 deletions

View File

@ -509,8 +509,8 @@ class BambuPrinter:
# noinspection PyUnusedLocal # noinspection PyUnusedLocal
def _gcode_M29(self, data: str) -> bool: def _gcode_M29(self, data: str) -> bool:
self._logger.debug("ignoring M28 command.") self._logger.debug("ignoring M29 command.")
self._send("M28 disabled for Bambu") self._send("M29 disabled for Bambu")
return True return True
def _gcode_M30(self, data: str) -> bool: def _gcode_M30(self, data: str) -> bool:
@ -811,7 +811,7 @@ class BambuPrinter:
if file is not None: if file is not None:
ftp = IoTFTPSClient(f"{host}", 990, "bblp", f"{access_code}", ssl_implicit=True) ftp = IoTFTPSClient(f"{host}", 990, "bblp", f"{access_code}", ssl_implicit=True)
try: try:
if ftp.delete_file(filename): if ftp.delete_file(file["path"]):
self._logger.debug(f"{filename} deleted") self._logger.debug(f"{filename} deleted")
else: else:
raise Exception("delete failed") raise Exception("delete failed")

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.7" plugin_version = "0.0.8"
# 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