Skip to content

Commit

Permalink
0.0.11
Browse files Browse the repository at this point in the history
support cache folder listing for P1 devices
add gcode command support
  • Loading branch information
jneilliii committed Feb 13, 2024
1 parent f54ab5c commit ff58636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions octoprint_bambu_printer/virtual.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def _mappedSdList(self) -> Dict[str, Dict[str, Any]]:
access_code = self._settings.get(["access_code"])

ftp = IoTFTPSClient(f"{host}", 990, "bblp", f"{access_code}", ssl_implicit=True)
filelist = ftp.list_files("", ".3mf")
filelist = ftp.list_files("", ".3mf") or []

for entry in filelist:
if entry.startswith("/"):
Expand All @@ -665,7 +665,7 @@ def _mappedSdList(self) -> Dict[str, Dict[str, Any]]:
result[dosname.lower()] = filename.lower()
result[filename.lower()] = data

filelistcache = ftp.list_files("cache/", ".3mf")
filelistcache = ftp.list_files("cache/", ".3mf") or []

for entry in filelistcache:
if entry.startswith("/"):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
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.10"
plugin_version = "0.0.11"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit ff58636

Please sign in to comment.