From 39061bfedd459029cfd0bb02566b762a20addf92 Mon Sep 17 00:00:00 2001 From: Vitor de Miranda Henrique Date: Fri, 3 Mar 2017 22:25:45 -0600 Subject: [PATCH] bug fix --- octoprint_enclosure/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_enclosure/__init__.py b/octoprint_enclosure/__init__.py index 947a19e..554b3d4 100644 --- a/octoprint_enclosure/__init__.py +++ b/octoprint_enclosure/__init__.py @@ -167,7 +167,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, #if self._settings.get(["filamentSensorActiveLow"]) and (not GPIO.input(self.filamentSensor.pinNumber)): if self._settings.get(["filamentSensorActiveLow"]) ^ GPIO.input(self.filamentSensor.pinNumber): self._logger.info("Detected end of filament.") - for line in filamentSensorGcode.split(';'): + for line in self._settings.get(["filamentSensorGcode"]).split(';'): if line: self._printer.commands(line.strip().capitalize()) self._logger.info("Sending GCODE command: %s",line.strip().capitalize())