mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-14 22:02:09 +08:00
use put_bool to set Passive
old-commit-hash: 2967e7929663147a5a99ce00f5f40df99dc53b3d
This commit is contained in:
@@ -42,7 +42,7 @@ def manager_init():
|
||||
|
||||
# is this dashcam?
|
||||
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:
|
||||
raise Exception("Passive must be set to continue")
|
||||
|
||||
Reference in New Issue
Block a user