From 431a6de992893605c6f3c9c60a44b32298868b38 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 5b665a7412333d..24c73a3079b23a 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