summaryrefslogtreecommitdiffstats
path: root/watch-library
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-02-18 09:23:58 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-02-18 09:23:58 -0500
commit8e1c7f0631e3513bc5411b3f6bdf7f4012fe69d1 (patch)
tree11c3362684337a004c62f2f9a0edc198ca8652d5 /watch-library
parentdf2cc7e94f91a15a41c36935875f6f9be42cdabd (diff)
downloadSensor-Watch-8e1c7f0631e3513bc5411b3f6bdf7f4012fe69d1.tar.gz
Sensor-Watch-8e1c7f0631e3513bc5411b3f6bdf7f4012fe69d1.tar.bz2
Sensor-Watch-8e1c7f0631e3513bc5411b3f6bdf7f4012fe69d1.zip
lis2dw: bugfix, only read once
Diffstat (limited to 'watch-library')
-rw-r--r--watch-library/shared/driver/lis2dw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/watch-library/shared/driver/lis2dw.c b/watch-library/shared/driver/lis2dw.c
index fce266b3..275c1c7c 100644
--- a/watch-library/shared/driver/lis2dw.c
+++ b/watch-library/shared/driver/lis2dw.c
@@ -153,7 +153,6 @@ bool lis2dw_read_fifo(lis2dw_fifo_t *fifo_data) {
fifo_data->count = temp & LIS2DW_FIFO_SAMPLE_COUNT;
for(int i = 0; i < fifo_data->count; i++) {
- watch_i2c_receive(LIS2DW_ADDRESS, (uint8_t *)&buffer, 6);
fifo_data->readings[i] = lis2dw_get_raw_reading();
}