From d05cc72c65851c52cc0356a58c2aa81197e7d6cf Mon Sep 17 00:00:00 2001 From: Vitor de Miranda Henrique Date: Fri, 3 Mar 2017 00:16:43 -0600 Subject: [PATCH] Bug Fix --- octoprint_enclosure/__init__.py | 5 +++++ setup.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/octoprint_enclosure/__init__.py b/octoprint_enclosure/__init__.py index 36bde14..c0f37fd 100644 --- a/octoprint_enclosure/__init__.py +++ b/octoprint_enclosure/__init__.py @@ -212,6 +212,11 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, #~~ EventPlugin mixin def on_event(self, event, payload): + + if event == Events.PRINT_RESUMED: + if self.filamentSensor.enable: + self.startFilamentDetection() + if event == Events.PRINT_STARTED: if self.filamentSensor.enable: self.startFilamentDetection() diff --git a/setup.py b/setup.py index 51a0f3c..8f5eaae 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_package = "octoprint_enclosure" plugin_name = "OctoPrint-Enclosure" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "1.7" +plugin_version = "1.8" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module