commit 83e7b0ff550220c4adf772bbc8371553e5f7a1dc
parent bcb958048e6e22a7f9ce3891e5bd35b376e72ec6
Author: rbckman <rbckman@localhost.localdomain>
Date: Thu, 9 Mar 2017 11:48:23 +0200
shutdown hold 2 s
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tarina.py b/tarina.py
@@ -1153,7 +1153,7 @@ def main():
#SHUTDOWN
elif pressed == 'shutdown':
time.sleep(0.1)
- if recording == False:
+ if recording == False and holdbutton == 'shutdown':
writemessage('Hold down 2s to shutdown')
if buttontime > 2.1:
bus.write_byte_data(DEVICE,OLATA,0)