Skip to content

Commit

Permalink
add self.CP = CP as with other carstate files (commaai#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored and rbiasini committed Dec 21, 2018
1 parent 921b8d3 commit 431a6de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/car/gm/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 431a6de

Please sign in to comment.