Skip to content

Commit

Permalink
fix gpio led issue
Browse files Browse the repository at this point in the history
  • Loading branch information
madgrizzle committed Jan 16, 2020
1 parent 8c84553 commit 1dad08f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Actions/gpioActions.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ def getAction(self, action):
return "led", None

def causeAction(self, action, onoff):
foundLED = None
for led in self.LEDs:
if led[0].action == action:
if led[0] == action:
if onoff == "on":
led[1].on()
else:
Expand Down

0 comments on commit 1dad08f

Please sign in to comment.