mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-10-01 03:53:41 +08:00
params: Fix loading delay on startup (#1297)
params frame counter init make sure param_store.update gets processed on first call Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ class ParamStore:
|
||||
self.keys = universal_params + brand_params
|
||||
self._params = {}
|
||||
|
||||
self.frame = 0
|
||||
self.frame = -1
|
||||
|
||||
def update(self, params: Params) -> None:
|
||||
self.frame += 1
|
||||
|
||||
Reference in New Issue
Block a user