identation fix

This commit is contained in:
Vitor de Miranda Henrique
2018-06-18 14:27:48 -05:00
parent 2f3de65c44
commit 6708be8c2d

View File

@@ -1043,7 +1043,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin,
def handle_initial_gpio_control(self):
try:
for filament_sensor in list(filter(lambda item: item['input_type'] == 'gpio' and
item['action_type'] == 'output_control', self.rpi_inputs)):
item['action_type'] == 'output_control', self.rpi_inputs)):
gpio_pin = self.to_int(rpi_input['gpio_pin'])
controlled_io = self.to_int(rpi_input['controlled_io'])
if (rpi_input['edge'] == 'fall') ^ GPIO.input(gpio_pin):