spat: Process SPATEMs for all intersections in cache
Otherwise it can take a while until SPAT data is available after the intersection was "locked".
This commit is contained in:
parent
cc31d6226e
commit
c1315f10aa
1 changed files with 1 additions and 12 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue