mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-10 18:13:40 +08:00
2026-06-15: fix(serverd): make sure it load/show vehicle specific settings
This commit is contained in:
@@ -111,7 +111,9 @@ class AppCache:
|
||||
"""Parse CarParams from Params store."""
|
||||
result = {'brand': '', 'openpilot_longitudinal_control': False}
|
||||
try:
|
||||
car_params_bytes = self.params.get("CarParams")
|
||||
# CarParams is cleared offroad/at boot; CarParamsPersistent keeps the last car's
|
||||
# params so brand/longitudinal-gated settings still show when configuring parked.
|
||||
car_params_bytes = self.params.get("CarParamsPersistent") or self.params.get("CarParams")
|
||||
if car_params_bytes:
|
||||
from cereal import car
|
||||
with car.CarParams.from_bytes(car_params_bytes) as cp:
|
||||
|
||||
Reference in New Issue
Block a user