Skip to content

Commit 03af516

Browse files
committed
0.1.6
* replace 0 with 1 bytes during reporting print status to trigger state change in OctoPrint sooner.
1 parent c00285b commit 03af516

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

octoprint_bambu_printer/printer/bambu_virtual_printer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,9 @@ def _cancel_print(self):
580580

581581
def report_print_job_status(self):
582582
if self.current_print_job is not None:
583+
file_position = 1 if self.current_print_job.file_position == 0 else self.current_print_job.file_position
583584
self.sendIO(
584-
f"SD printing byte {self.current_print_job.file_position}"
585+
f"SD printing byte {file_position}"
585586
f"/{self.current_print_job.file_info.size}"
586587
)
587588
else:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "OctoPrint-BambuPrinter"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "0.1.5"
17+
plugin_version = "0.1.6"
1818

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

0 commit comments

Comments
 (0)