From c1315f10aa6383f19964d1317bbcb275795e1120 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Mon, 22 Jun 2026 23:02:09 +0200 Subject: [PATCH] spat: Process SPATEMs for all intersections in cache Otherwise it can take a while until SPAT data is available after the intersection was "locked". --- src/applogic/mod.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/applogic/mod.rs b/src/applogic/mod.rs index 18d2726..b9e6dd1 100644 --- a/src/applogic/mod.rs +++ b/src/applogic/mod.rs @@ -208,18 +208,7 @@ impl State { #[cfg(feature = "spat")] pub fn handle_spatem(&mut self, etsi: &tlc::SPATEM) { - // only update "our" intersection - if let GlosaState::Locked(data) = &self.glosa_state - && etsi - .spat - .intersections - .0 - .iter() - .find(|i| i.id.id.0 == data.intersection_id) - .is_some() - { - self.tlc_cache.handle_spatem(self.time, etsi); - } + self.tlc_cache.handle_spatem(self.time, etsi); } #[cfg(feature = "spat")]