This commit is contained in:
Fabio Manganiello 2018-08-22 19:20:24 +02:00
parent ba1eca29fc
commit 335d3e3cd7

View file

@ -126,7 +126,7 @@ class GpioPlugin(Plugin):
raise RuntimeError("No PIN mappings were provided/configured")
values = []
for (pin, name) in self.pins_by_number.keys():
for (pin, name) in self.pins_by_number.items():
gpio.setmode(gpio.BCM)
gpio.setup(pin, gpio.IN)
val = gpio.input(pin)