paparazzi/paparazzi — pull request #129 by flixr (2012-02-02 19:10:37+00:00)
Title: possible fix for adxl345 issue in aspirin driver reported by Luke Barnett

From his mailing list post:
It would seem that periodically the data in the rx buffer gets offset by one,
i.e. it starts at accel_rx_buf[2] instead of accel_rx_buf[1].
The strange thing is that this does not occur if I disable the magnetometers and read gyros and accels only.
What I did to fix the issue is to call adxl345_clear_rx_buf() at the beginning of adxl_start_reading_data().