disable uploading raw by default (#21128)

old-commit-hash: c76c30fa2d37d471d065e908739c69f06b43ccfe
This commit is contained in:
Adeeb Shihadeh
2021-06-03 15:24:30 -07:00
committed by GitHub
parent c40fb813e3
commit 61d3b1f177
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ std::unordered_map<std::string, uint32_t> keys = {
{"IsRHD", PERSISTENT},
{"IsTakingSnapshot", CLEAR_ON_MANAGER_START},
{"IsUpdateAvailable", CLEAR_ON_MANAGER_START},
{"IsUploadRawEnabled", PERSISTENT},
{"UploadRaw", PERSISTENT},
{"LastAthenaPingTime", PERSISTENT},
{"LastGPSPosition", PERSISTENT},
{"LastUpdateException", PERSISTENT},
@@ -56,7 +56,7 @@ class MockParams():
def __init__(self):
self.params = {
"DongleId": b"0000000000000000",
"IsUploadRawEnabled": b"1",
"UploadRaw": b"1",
"IsOffroad": b"1",
}
+1 -1
View File
@@ -215,7 +215,7 @@ def uploader_fn(exit_event):
continue
on_wifi = network_type == NetworkType.wifi
allow_raw_upload = params.get_bool("IsUploadRawEnabled")
allow_raw_upload = params.get_bool("UploadRaw")
d = uploader.next_file_to_upload(with_raw=allow_raw_upload and on_wifi and offroad)
if d is None: # Nothing to upload
+1 -1
View File
@@ -49,7 +49,7 @@ TogglesPanel::TogglesPanel(QWidget *parent) : QWidget(parent) {
"../assets/offroad/icon_shell.png",
this));
toggles.append(new ParamControl("IsUploadRawEnabled",
toggles.append(new ParamControl("UploadRaw",
"Upload Raw Logs",
"Upload full logs and full resolution video by default while on WiFi. If not enabled, individual logs can be marked for upload at my.comma.ai/useradmin.",
"../assets/offroad/icon_network.png",