Skip to content

Commit 1dad08f

Browse files
committed
fix gpio led issue
1 parent 8c84553 commit 1dad08f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Actions/gpioActions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ def getAction(self, action):
7070
return "led", None
7171

7272
def causeAction(self, action, onoff):
73-
foundLED = None
7473
for led in self.LEDs:
75-
if led[0].action == action:
74+
if led[0] == action:
7675
if onoff == "on":
7776
led[1].on()
7877
else:

0 commit comments

Comments
 (0)