diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-04-08 11:28:54 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-04-22 16:51:13 +0200 |
commit | 68c180f2aba4471483e1786556c2bc2a94a7d2a7 (patch) | |
tree | 13fd0790193e9e9fe8a745b58cfe34bc108b9b22 /accel.c | |
parent | e3897565c342bee4765f921240b7ca91cd9b23f1 (diff) | |
download | hourglass-68c180f2aba4471483e1786556c2bc2a94a7d2a7.tar.gz hourglass-68c180f2aba4471483e1786556c2bc2a94a7d2a7.tar.bz2 hourglass-68c180f2aba4471483e1786556c2bc2a94a7d2a7.zip |
Increase CPU and UART speed
Re-enable interrupt based accel.
Diffstat (limited to 'accel.c')
-rw-r--r-- | accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |