fix interface init for mock car

old-commit-hash: 86057f785bbf77ce38ea2d6869fdf7377613ca4b
This commit is contained in:
Adeeb Shihadeh
2020-05-23 15:39:22 -07:00
parent 02cea3e7b4
commit 7ddfd7043b
+4 -3
View File
@@ -23,9 +23,10 @@ class CarInterfaceBase():
self.frame = 0
self.low_speed_alert = False
self.CS = CarState(CP)
self.cp = self.CS.get_can_parser(CP)
self.cp_cam = self.CS.get_cam_can_parser(CP)
if CarState is not None:
self.CS = CarState(CP)
self.cp = self.CS.get_can_parser(CP)
self.cp_cam = self.CS.get_cam_can_parser(CP)
self.CC = None
if CarController is not None: