Skip to content

Commit

Permalink
fix: TypeError: 'bool' object is not callable
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Sep 25, 2024
1 parent e1acd45 commit da4ce94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/drive_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def update_v_cruise(self, CS, enabled, is_metric):
if not self.CP.pcmCruise:
# if stock cruise is completely disabled, then we can use our own set speed logic
self._update_v_cruise_non_pcm(CS, enabled, is_metric)
if self.v_cruise_initialized():
if self.v_cruise_initialized:
self.v_cruise_cluster_kph = self.v_cruise_kph + (CS.cruiseState.speedCluster - CS.cruiseState.speed) * CV.MS_TO_KPH
else:
self.v_cruise_cluster_kph = self.v_cruise_kph
Expand Down

0 comments on commit da4ce94

Please sign in to comment.