From 97c6013d1e825cdbab4b1d21851c1758a46d1dea Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 10 May 2024 03:11:23 -0700 Subject: [PATCH] sheesh! update should be first --- selfdrive/car/card.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/car/card.py b/selfdrive/car/card.py index b38a7dedae..746281554e 100755 --- a/selfdrive/car/card.py +++ b/selfdrive/car/card.py @@ -142,14 +142,14 @@ class Car: self.CC_prev = CC def step(self): + CS = self.state_update() + cloudlog.timestamp("State updated") + controlsState = self.sm['controlsState'] if controlsState.initialized and not self.controlsState_prev.initialized: self.CI.init(self.CP, self.can_sock, self.pm.sock['sendcan']) cloudlog.timestamp("Initialized") - CS = self.state_update() - cloudlog.timestamp("State updated") - self.state_publish(CS) cloudlog.timestamp("State published")