Upload when on ethernet (#22188)

in addition to when on wifi

Co-authored-by: ntegan <nick@egan.gg>
old-commit-hash: 54b5972cf6f7220ba6af061c6dadc2dc80d813d0
This commit is contained in:
ntegan1
2021-09-10 11:05:12 -08:00
committed by GitHub
parent 6703ad8e24
commit d508125f35
+2 -2
View File
@@ -260,10 +260,10 @@ def uploader_fn(exit_event):
time.sleep(60 if offroad else 5)
continue
on_wifi = network_type == NetworkType.wifi
good_internet = network_type in [NetworkType.wifi, NetworkType.ethernet]
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 allow_sleep:
time.sleep(60 if offroad else 5)