mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-23 20:43:53 +08:00
whitelist, don't blacklist
This commit is contained in:
@@ -10,8 +10,9 @@ from selfdrive.car import gen_empty_fingerprint
|
||||
|
||||
def get_startup_alert(car_recognized, controller_available):
|
||||
alert = 'startup'
|
||||
if Params().get("GitBranch") in ['master', 'master-ci']:
|
||||
alert = 'startupMaster'
|
||||
if Params().get("GitRemote") in ['git@github.com:commaai/openpilot.git', 'https://github.com/commaai/openpilot.git']:
|
||||
if Params().get("GitBranch") not in ['devel', 'release2-staging', 'dashcam-staging', 'release2', 'dashcam']:
|
||||
alert = 'startupMaster'
|
||||
if not car_recognized:
|
||||
alert = 'startupNoCar'
|
||||
elif car_recognized and not controller_available:
|
||||
|
||||
Reference in New Issue
Block a user