From b05df9df58bc6fdd122abfec3012bc2537fc069c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 22 Apr 2014 16:48:50 +0200 Subject: Fix interrupt stuff Sorta polling based now, with interrupts used to wake up from sleep only. At least it works. --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') 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 (); -- cgit v1.2.3