Upload when on ethernet (#22188)

in addition to when on wifi

Co-authored-by: ntegan <nick@egan.gg>
pull/22190/head
ntegan1 4 years ago committed by GitHub
parent d2e751f108
commit 54b5972cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/loggerd/uploader.py

@ -260,10 +260,10 @@ def uploader_fn(exit_event):
time.sleep(60 if offroad else 5) time.sleep(60 if offroad else 5)
continue continue
on_wifi = network_type == NetworkType.wifi good_internet = network_type in [NetworkType.wifi, NetworkType.ethernet]
allow_raw_upload = params.get_bool("UploadRaw") allow_raw_upload = params.get_bool("UploadRaw")
d = uploader.next_file_to_upload(with_raw=allow_raw_upload and on_wifi and offroad) d = uploader.next_file_to_upload(with_raw=allow_raw_upload and good_internet and offroad)
if d is None: # Nothing to upload if d is None: # Nothing to upload
if allow_sleep: if allow_sleep:
time.sleep(60 if offroad else 5) time.sleep(60 if offroad else 5)

Loading…
Cancel
Save