ui: one helper for received since started (#39382)

This commit is contained in:
Shane Smiskol
2026-11-28 11:50:19 -06:00
committed by firestar5683
parent 5d590cc382
commit 9f0acb2c70
+3
View File
@@ -224,6 +224,9 @@ class UIState:
def is_offroad(self) -> bool:
return not self.started
def received_since_started(self, service: str) -> bool:
return self.sm.recv_frame[service] >= self.started_frame
def update(self) -> None:
if getattr(self, "replay_clock", None) is not None:
before = self.replay_clock.sample()