mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-23 23:02:04 +08:00
ui: display different border color for long control without lat (#981)
Update ui.cc Co-authored-by: Jason Wen <haibin.wen3@gmail.com> Co-authored-by: DevTekVE <devtekve@gmail.com>
This commit is contained in:
+6
-2
@@ -80,8 +80,12 @@ void UIState::updateStatus() {
|
||||
status = STATUS_OVERRIDE;
|
||||
} else {
|
||||
if (mads.getAvailable()) {
|
||||
if (mads.getEnabled()) {
|
||||
status = ss.getEnabled() ? STATUS_ENGAGED : STATUS_LAT_ONLY;
|
||||
if (mads.getEnabled() && ss.getEnabled()) {
|
||||
status = STATUS_ENGAGED;
|
||||
} else if (mads.getEnabled()) {
|
||||
status = STATUS_LAT_ONLY;
|
||||
} else if (ss.getEnabled()) {
|
||||
status = STATUS_LONG_ONLY;
|
||||
} else {
|
||||
status = STATUS_DISENGAGED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user