aboutsummaryrefslogtreecommitdiff
path: root/accel.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel.c')
-rw-r--r--accel.c2
1 files changed, 1 insertions, 1 deletions
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)) {