* replace 0 with 1 bytes during reporting print status to trigger state change in OctoPrint sooner.
This commit is contained in:
jneilliii
2024-09-06 01:39:48 -04:00
parent c00285b1b2
commit 03af51608d
2 changed files with 3 additions and 2 deletions

View File

@ -580,8 +580,9 @@ class BambuVirtualPrinter:
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: