defined LIS2DW_FIFO_TIMEOUT_SECOND

This commit is contained in:
David Volovskiy
2025-10-08 17:48:34 -04:00
committed by Alessandro Genova
parent 625e920970
commit 757f1a1de7
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -420,7 +420,7 @@ static void _monitor_update(lis2dw_monitor_state_t *state)
lis2dw_fifo_t fifo;
float x = 0, y = 0, z = 0;
lis2dw_read_fifo(&fifo, 100 / DISPLAY_FREQUENCY);
lis2dw_read_fifo(&fifo, LIS2DW_FIFO_TIMEOUT_SECOND / DISPLAY_FREQUENCY);
if (fifo.count == 0) {
return;
}