]> git.earman.xyz Git - sensor-watch.git/commitdiff
lis2dw: bugfix, only read once
authorJoey Castillo <joeycastillo@utexas.edu>
Fri, 18 Feb 2022 14:23:58 +0000 (09:23 -0500)
committerJoey Castillo <joeycastillo@utexas.edu>
Fri, 18 Feb 2022 14:23:58 +0000 (09:23 -0500)
watch-library/shared/driver/lis2dw.c

index fce266b3380902a6a1efa8d056a45d38b1e68e5b..275c1c7c43755da54ca1ab2ba7710c7751498835 100644 (file)
@@ -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();
     }