From b5d8230c3dbee95f5d72764b0f96c2372c601b5a Mon Sep 17 00:00:00 2001 From: arne182 Date: Fri, 21 Dec 2018 08:40:26 +0100 Subject: [PATCH] add self.CP = CP as with other carstate files (#459) --- selfdrive/car/gm/carstate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/car/gm/carstate.py b/selfdrive/car/gm/carstate.py index 5b665a7412..24c73a3079 100644 --- a/selfdrive/car/gm/carstate.py +++ b/selfdrive/car/gm/carstate.py @@ -51,6 +51,7 @@ def get_powertrain_can_parser(CP, canbus): class CarState(object): def __init__(self, CP, canbus): + self.CP = CP # initialize can parser self.car_fingerprint = CP.carFingerprint