From 11fb727325a133edbe693496a4625801b3432f1c Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 4 Feb 2021 16:27:31 +0800 Subject: [PATCH] Don't run track / filter expiry if reading recorded captures via --ifile --- dump1090.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dump1090.c b/dump1090.c index 069b8dd..5ad1767 100644 --- a/dump1090.c +++ b/dump1090.c @@ -385,8 +385,11 @@ static void backgroundTasks(void) { uint64_t now = mstime(); - icaoFilterExpire(); - trackPeriodicUpdate(); + if (Modes.sdr_type != SDR_IFILE) { + // don't run these if processing data from a file + icaoFilterExpire(); + trackPeriodicUpdate(); + } if (Modes.net) { modesNetPeriodicWork();