pull/35145/head
Jason Young 2 months ago
parent 6187dde957
commit 47a07dbd29
  1. 3
      cereal/messaging/__init__.py

@ -217,8 +217,7 @@ class SubMaster:
self.logMonoTime[s] = msg.logMonoTime
self.valid[s] = msg.valid
for s in self.services:
if not self.on_demand[s]:
for s in self.static_freq_services:
# alive if delay is within 10x the expected frequency; checks relaxed in simulator
self.alive[s] = (cur_time - self.recv_time[s]) < (10. / SERVICE_LIST[s].frequency) or (self.seen[s] and self.simulation)
self.freq_ok[s] = self.freq_tracker[s].valid or self.simulation

Loading…
Cancel
Save