Skip to content

Commit

Permalink
0.1.6
Browse files Browse the repository at this point in the history
* replace 0 with 1 bytes during reporting print status to trigger state change in OctoPrint sooner.
  • Loading branch information
jneilliii committed Sep 6, 2024
1 parent c00285b commit 03af516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion octoprint_bambu_printer/printer/bambu_virtual_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,9 @@ def _cancel_print(self):

def report_print_job_status(self):
if self.current_print_job is not None:
file_position = 1 if self.current_print_job.file_position == 0 else self.current_print_job.file_position
self.sendIO(
f"SD printing byte {self.current_print_job.file_position}"
f"SD printing byte {file_position}"
f"/{self.current_print_job.file_info.size}"
)
else:
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.1.5"
plugin_version = "0.1.6"

# 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 03af516

Please sign in to comment.