whitelist, don't blacklist

pull/964/head
George Hotz 5 years ago
parent 013166a34e
commit dcd0807d7e
  1. 3
      selfdrive/car/car_helpers.py

@ -10,7 +10,8 @@ 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']:
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'

Loading…
Cancel
Save