Add poweroff command

master v1.0.0
Guillaume Dott 2017-11-14 00:28:12 +01:00
parent dbddbd36c5
commit aa71e1bb48
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class PowerButton(Button):
self.timestamp = time.time() self.timestamp = time.time()
if self.count >= 5: if self.count >= 5:
print('POWEROFF') os.system('sudo poweroff')
class CaptureButton(Button): class CaptureButton(Button):
countdown = 3 countdown = 3