From e0fa111ac2adbbf86fa58ef1ce1e625a8ea5a441 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Wed, 24 Sep 2025 01:01:32 -0400 Subject: [PATCH] fix event --- sunnypilot/selfdrive/selfdrived/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunnypilot/selfdrive/selfdrived/events.py b/sunnypilot/selfdrive/selfdrived/events.py index 978580669c..f40d910703 100644 --- a/sunnypilot/selfdrive/selfdrived/events.py +++ b/sunnypilot/selfdrive/selfdrived/events.py @@ -29,7 +29,7 @@ def speed_limit_adjust_alert(CP: car.CarParams, CS: car.CarState, sm: messaging. def speed_limit_pre_active_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.SubMaster, metric: bool, soft_disable_time: int, personality) -> Alert: - max_initial_set_speed = PCM_LONG_REQUIRED_MAX_SET_SPEED[metric] + max_initial_set_speed = round(PCM_LONG_REQUIRED_MAX_SET_SPEED[metric] * (CV.MS_TO_KPH if metric else CV.MS_TO_MPH)) speed_unit = "km/h" if metric else "mph" return Alert( "Speed Limit Assist: Activation Required",