aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-07-16 15:05:23 +0200
committerFredrik Thulin <fredrik@thulin.net>2016-07-16 15:05:23 +0200
commit574aea07d7d0eeddae965a80d9f1e6a3a42f2645 (patch)
treecaecae23795dea4a4d10735b6ca4768fbba9bed4
parentb1abec4fb2478057da8e0e6788b015ce16e4985b (diff)
The sleep mode seems to not work yet.
It seems the AVR reboots on exiting sleep mode.
-rw-r--r--tamper.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tamper.c b/tamper.c
index e3d12af..e2b2127 100644
--- a/tamper.c
+++ b/tamper.c
@@ -261,8 +261,12 @@ main()
if (panic_p())
mkm_wipe();
- if (!panic_p())
- sleep();
+ /* Sleep is not working right at the moment (the AVR seems to be reset
+ when brought out of sleep mode by a press on the panic button).
+
+ if (!panic_p())
+ sleep();
+ */
}
return 0;