mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 04:22:09 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user