Skip to content

Commit

Permalink
fixed cmdheld typo in btn.cmdreleased function
Browse files Browse the repository at this point in the history
  • Loading branch information
cgomesu authored Jan 24, 2021
1 parent d668785 commit 00b4e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions button-box.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def event_released(btn):
end(msg='The power button ({}) was released from the ON state.'.format(btn.pin), status=0)
elif btn.cmdreleased:
logging.info('Started running the following command: \'{}\''.format(btn.cmdreleased))
Popen(btn.cmdheld) if args['cmd'] == 'Popen' else run(btn.cmdheld)
Popen(btn.cmdreleased) if args['cmd'] == 'Popen' else run(btn.cmdreleased)
if args['debug']:
print('Finished invoking the script at \'{}\''.format(btn.cmdheld))
print('Finished invoking the script at \'{}\''.format(btn.cmdreleased))
logging.info('Finished waiting for the following command: \'{}\''.format(btn.cmdreleased))
sleep(0.05)

Expand Down

0 comments on commit 00b4e33

Please sign in to comment.