mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-15 03:53:43 +08:00
openpilot v0.7.8 release
This commit is contained in:
@@ -247,7 +247,8 @@ def uploader_fn(exit_event):
|
||||
|
||||
backoff = 0.1
|
||||
while True:
|
||||
allow_raw_upload = (params.get("IsUploadRawEnabled") != b"0")
|
||||
offroad = params.get("IsOffroad") == b'1'
|
||||
allow_raw_upload = (params.get("IsUploadRawEnabled") != b"0") and offroad
|
||||
on_hotspot = is_on_hotspot()
|
||||
on_wifi = is_on_wifi()
|
||||
should_upload = on_wifi and not on_hotspot
|
||||
@@ -257,7 +258,6 @@ def uploader_fn(exit_event):
|
||||
|
||||
d = uploader.next_file_to_upload(with_raw=allow_raw_upload and should_upload)
|
||||
if d is None: # Nothing to upload
|
||||
offroad = params.get("IsOffroad") == b'1'
|
||||
time.sleep(60 if offroad else 5)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user