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