Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion octoprint_filamentreload/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down