diff --git a/octoprint_filamentreload/__init__.py b/octoprint_filamentreload/__init__.py index 31e0b30..6f6fde8 100644 --- a/octoprint_filamentreload/__init__.py +++ b/octoprint_filamentreload/__init__.py @@ -116,8 +116,9 @@ def on_event(self, event, payload): if self.sensor_enabled(): self.triggered = 0 # reset triggered state GPIO.remove_event_detect(self.pin) + GPIO.setup(self.pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.add_event_detect( - self.pin, GPIO.BOTH, + self.pin, GPIO.RISING, callback=self.sensor_callback, bouncetime=self.bounce ) diff --git a/setup.py b/setup.py index b2c8bc6..13957ed 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_name = "Octoprint-FilamentReload" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "1.1.0" +plugin_version = "1.1.1" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module