From 68c180f2aba4471483e1786556c2bc2a94a7d2a7 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 8 Apr 2014 11:28:54 +0200 Subject: Increase CPU and UART speed Re-enable interrupt based accel. --- accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel.c') diff --git a/accel.c b/accel.c index 670121e..b58f7f7 100644 --- a/accel.c +++ b/accel.c @@ -67,7 +67,7 @@ bool accelProcess () { reading = false; } } else { - if (/*drdy &&*/ twr.status != TWST_WAIT) { + if (drdy && twr.status != TWST_WAIT) { /* new data available in device buffer and bus is free, we are * reading the registers inbetween out_x/y/z and ignore them */ if (!twRequest (TWM_READ, LIS302DL, LIS302DL_UNUSED1, (uint8_t *) val, 6)) { -- cgit v1.2.3