lis2dw: bugfix, only read once

This commit is contained in:
Joey Castillo 2022-02-18 09:23:58 -05:00
parent df2cc7e94f
commit 8e1c7f0631

View 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();
}