mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-07-26 11:52:04 +08:00
uploader: fix env var parsing
This commit is contained in:
@@ -29,7 +29,7 @@ MAX_UPLOAD_SIZES = {
|
||||
"qcam": 5*1e6,
|
||||
}
|
||||
|
||||
allow_sleep = bool(os.getenv("UPLOADER_SLEEP", "1"))
|
||||
allow_sleep = bool(int(os.getenv("UPLOADER_SLEEP", "1")))
|
||||
force_wifi = os.getenv("FORCEWIFI") is not None
|
||||
fake_upload = os.getenv("FAKEUPLOAD") is not None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user