Chrysler: Default fingerprint argument to empty fingerprint (#20146)

This commit is contained in:
Shane Smiskol 2021-02-24 08:41:20 -06:00 committed by GitHub
parent 04cbed3989
commit 700f7db644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,10 +11,7 @@ class CarInterface(CarInterfaceBase):
return float(accel) / 3.0
@staticmethod
def get_params(candidate, fingerprint=None, car_fw=None):
if fingerprint is None:
fingerprint = gen_empty_fingerprint()
def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=None):
ret = CarInterfaceBase.get_std_params(candidate, fingerprint)
ret.carName = "chrysler"
ret.safetyModel = car.CarParams.SafetyModel.chrysler