remove call to creating connection in printer_worker thread since it's called on initialization.
This commit is contained in:
parent
28be048300
commit
2537bc8f57
@ -264,7 +264,7 @@ class BambuVirtualPrinter:
|
|||||||
self._settings.get(["device_type"]) == ""
|
self._settings.get(["device_type"]) == ""
|
||||||
or self._settings.get(["serial"]) == ""
|
or self._settings.get(["serial"]) == ""
|
||||||
or self._settings.get(["username"]) == ""
|
or self._settings.get(["username"]) == ""
|
||||||
or self._settings.get(["access_code"]) == ""
|
or (self._settings.get(["access_code"]) == "" and self._settings.get_boolean(["local_mqtt"]))
|
||||||
):
|
):
|
||||||
msg = "invalid settings to start connection with Bambu Printer"
|
msg = "invalid settings to start connection with Bambu Printer"
|
||||||
self._log.debug(msg)
|
self._log.debug(msg)
|
||||||
@ -685,7 +685,7 @@ class BambuVirtualPrinter:
|
|||||||
self._state_change_queue.join()
|
self._state_change_queue.join()
|
||||||
|
|
||||||
def _printer_worker(self):
|
def _printer_worker(self):
|
||||||
self._create_client_connection_async()
|
# self._create_client_connection_async()
|
||||||
self.sendIO("Printer connection complete")
|
self.sendIO("Printer connection complete")
|
||||||
while self._running:
|
while self._running:
|
||||||
try:
|
try:
|
||||||
|
2
setup.py
2
setup.py
@ -14,7 +14,7 @@ plugin_package = "octoprint_bambu_printer"
|
|||||||
plugin_name = "OctoPrint-BambuPrinter"
|
plugin_name = "OctoPrint-BambuPrinter"
|
||||||
|
|
||||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
||||||
plugin_version = "0.1.8rc3"
|
plugin_version = "0.1.8rc4"
|
||||||
|
|
||||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||||
# module
|
# module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user