mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-19 16:22:08 +08:00
selfdrived: rename temporary variable
not obvious it's not to be used after
This commit is contained in:
@@ -377,8 +377,8 @@ class SelfdriveD:
|
||||
self.events.add(EventName.personalityChanged)
|
||||
|
||||
def data_sample(self):
|
||||
car_state = messaging.recv_one(self.car_state_sock)
|
||||
CS = car_state.carState if car_state else self.CS_prev
|
||||
_car_state = messaging.recv_one(self.car_state_sock)
|
||||
CS = _car_state.carState if _car_state else self.CS_prev
|
||||
|
||||
self.sm.update(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user