From 00b4e335dd93cbec2e5413317324db8085863d92 Mon Sep 17 00:00:00 2001 From: Carlos Gomes <50534116+cgomesu@users.noreply.github.com> Date: Sun, 24 Jan 2021 12:55:14 -0300 Subject: [PATCH] fixed cmdheld typo in btn.cmdreleased function --- button-box.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/button-box.py b/button-box.py index e7dce46..ed65aea 100755 --- a/button-box.py +++ b/button-box.py @@ -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)