Skip to content

Commit

Permalink
Merge pull request #675 from Jocke4f/fix_661_gpo_invert
Browse files Browse the repository at this point in the history
Added in on_flash support for output_invert for lastState.
  • Loading branch information
josephdadams authored Apr 6, 2024
2 parents b28b745 + 260edc2 commit 509b2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listener_clients/gpo-listener/gpo-listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def on_flash(gpoGroupId):
time.sleep(0.5)
GPIO.output(gpo["pinNumber"], getOutputValue(False))
time.sleep(0.5)
GPIO.output(gpo["pinNumber"], gpo["lastState"])
GPIO.output(gpo["pinNumber"], getOutputValue(gpo["lastState"]))

@sio.on("reassign")
def on_reassign(oldDeviceId, newDeviceId, gpoGroupId):
Expand Down

0 comments on commit 509b2ac

Please sign in to comment.