use put_bool to set Passive

pull/20640/head
Willem Melching 4 years ago
parent 74aa6e29c9
commit 2967e79296
  1. 2
      selfdrive/manager/manager.py

@ -42,7 +42,7 @@ def manager_init():
# is this dashcam? # is this dashcam?
if os.getenv("PASSIVE") is not None: if os.getenv("PASSIVE") is not None:
params.put("Passive", str(int(os.getenv("PASSIVE")))) params.put_bool("Passive", bool(int(os.getenv("PASSIVE"))))
if params.get("Passive") is None: if params.get("Passive") is None:
raise Exception("Passive must be set to continue") raise Exception("Passive must be set to continue")

Loading…
Cancel
Save