We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a4f017 commit b4c3598Copy full SHA for b4c3598
octoprint_filamentreload/__init__.py
@@ -24,7 +24,7 @@ def on_after_startup(self):
24
self.bounce = int(self._settings.get(["bounce"]))
25
self.switch = int(self._settings.get(["switch"]))
26
27
- if self._settings.get(["pin"]) != -1: # If a pin is defined
+ if self._settings.get(["pin"]) != "-1": # If a pin is defined
28
self._logger.info("Filament Sensor active on GPIO Pin [%s]"%self.pin)
29
GPIO.setup(self.pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) # Initialize GPIO as INPUT
30
0 commit comments