aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-04-22 16:48:50 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-04-22 16:51:13 +0200
commitb05df9df58bc6fdd122abfec3012bc2537fc069c (patch)
treef0be81167c40aa7f3490e8018ea92cc21b16f2be /main.c
parent68c180f2aba4471483e1786556c2bc2a94a7d2a7 (diff)
downloadhourglass-b05df9df58bc6fdd122abfec3012bc2537fc069c.tar.gz
hourglass-b05df9df58bc6fdd122abfec3012bc2537fc069c.tar.bz2
hourglass-b05df9df58bc6fdd122abfec3012bc2537fc069c.zip
Fix interrupt stuff
Sorta polling based now, with interrupts used to wake up from sleep only. At least it works.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9c35e99..4eb461e 100644
--- a/main.c
+++ b/main.c
@@ -66,7 +66,7 @@ int main () {
gyroProcess ();
accelProcess();
} else {
- accelProcess();
+ accelProcess ();
gyroProcess ();
}
checkGyro = !checkGyro;
@@ -82,6 +82,8 @@ int main () {
}
timerStop ();
+ printf ("stopped\n");
+
/* global interrupt disable */
cli ();