mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-27 13:13:54 +08:00
do not allow target speed confirm if inactive
This commit is contained in:
@@ -159,7 +159,7 @@ class SpeedLimitAssist:
|
||||
self.state = SpeedLimitAssistState.pending
|
||||
|
||||
def _update_non_pcm_long_confirmed_state(self, CS) -> bool:
|
||||
if self.target_set_speed_confirmed:
|
||||
if self.target_set_speed_confirmed and self.state != SpeedLimitAssistState.inactive:
|
||||
return True
|
||||
|
||||
if self.state == SpeedLimitAssistState.preActive:
|
||||
|
||||
Reference in New Issue
Block a user