mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-22 09:33:52 +08:00
slow down upload check when offroad (#1634)
This commit is contained in:
@@ -256,8 +256,9 @@ def uploader_fn(exit_event):
|
||||
return
|
||||
|
||||
d = uploader.next_file_to_upload(with_raw=allow_raw_upload and should_upload)
|
||||
if d is None:
|
||||
time.sleep(5)
|
||||
if d is None: # Nothing to upload
|
||||
offroad = params.get("IsOffroad") == b'1'
|
||||
time.sleep(60 if offroad else 5)
|
||||
continue
|
||||
|
||||
key, fn = d
|
||||
|
||||
Reference in New Issue
Block a user