Skip to content

Commit

Permalink
fix that
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored Aug 30, 2024
1 parent 8d89aa6 commit 136b4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/panda_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def read(self, strict: bool = True):
return cs

def write(self, cc: CarControl) -> None:
if cc.enabled and not p.panda.health()['controls_allowed']:
if cc.enabled and not self.p.health()['controls_allowed']:
# prevent the car from faulting. print a warning?
cc = CarControl(enabled=False)
_, can_sends = self.CI.apply(cc)
Expand Down

0 comments on commit 136b4fb

Please sign in to comment.