Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
royjr committed Dec 19, 2024
1 parent 951210d commit e5b005c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/hyundai/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def update(self, can_parsers) -> structs.CarState:
# Mimic how dash converts to imperial.
# Sorento is the only platform where CF_Clu_VehicleSpeed is already imperial when not is_metric
# TODO: CGW_USM1->CF_Gway_DrLockSoundRValue may describe this
if not self.is_metric and self.CP.carFingerprint not in (CAR.KIA_SORENTO, KIA_SORENTO_2024,):
if not self.is_metric and self.CP.carFingerprint not in (CAR.KIA_SORENTO, CAR.KIA_SORENTO_2024,):
self.cluster_speed = math.floor(self.cluster_speed * CV.KPH_TO_MPH + CV.KPH_TO_MPH)

ret.vEgoCluster = self.cluster_speed * speed_conv
Expand Down

0 comments on commit e5b005c

Please sign in to comment.