Skip to content

Commit c80169e

Browse files
committed
sensor do not show timestep warnings if no fifo int
1 parent 75da9e0 commit c80169e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sensor/sensor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,8 @@ void sensor_loop(void)
979979
packet_errors = 0;
980980
}
981981

982-
// Also check if expected number of timesteps when using FIFO threshold
983-
if (processed_timesteps && processed_timesteps != sensor_fifo_threshold)
982+
// Also check if expected number of timesteps when using FIFO threshold, if FIFO threshold is being used
983+
if (sensor_fifo_threshold && processed_timesteps && processed_timesteps != sensor_fifo_threshold)
984984
LOG_WRN("Expected %d timestep%s, got %d", sensor_fifo_threshold, sensor_fifo_threshold == 1 ? "" : "s", processed_timesteps);
985985

986986
// Update fusion gyro sanity? // TODO: use to detect drift and correct or suspend tracking

0 commit comments

Comments
 (0)