diff --git a/photoboite.py b/photoboite.py index 48d96b5..0c8a4f7 100755 --- a/photoboite.py +++ b/photoboite.py @@ -155,7 +155,7 @@ class PowerButton(Button): self.timestamp = time.time() if self.count >= 5: - print('POWEROFF') + os.system('sudo poweroff') class CaptureButton(Button): countdown = 3