Skip to content

Commit 7f1ae5a

Browse files
authored
0.1.4 (#43)
* fix stuck Printing from SD state when canceled in slicer or on printer, #42
1 parent 5754e81 commit 7f1ae5a

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

octoprint_bambu_printer/printer/states/idle_state.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from __future__ import annotations
2-
from pathlib import Path
32

43
from octoprint_bambu_printer.printer.file_system.file_info import FileInfo
5-
from octoprint_bambu_printer.printer.print_job import PrintJob
64
from octoprint_bambu_printer.printer.states.a_printer_state import APrinterState
75

86

octoprint_bambu_printer/printer/states/printing_state.py

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class PrintingState(APrinterState):
2222

2323
def __init__(self, printer: BambuVirtualPrinter) -> None:
2424
super().__init__(printer)
25+
self._current_print_job = None
2526
self._is_printing = False
2627
self._sd_printing_thread = None
2728

@@ -36,6 +37,7 @@ def finalize(self):
3637
self._is_printing = False
3738
self._sd_printing_thread.join()
3839
self._sd_printing_thread = None
40+
self._printer.current_print_job = None
3941

4042
def _start_worker_thread(self):
4143
if self._sd_printing_thread is None:

requirements.txt

+7
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@
77
###
88

99
.
10+
11+
pytest~=7.4.4
12+
pybambu~=1.0.1
13+
OctoPrint~=1.10.2
14+
setuptools~=70.0.0
15+
pyserial~=3.5
16+
Flask~=2.2.5

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.3"
17+
plugin_version = "0.1.4"
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)