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 klaus385 committed Dec 25, 2018
1 parent 2a80293 commit 1c6e978
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 1c6e978

Please sign in to comment.