From a6214ff3b10114f727c9ec89dfa0ac275979f62f Mon Sep 17 00:00:00 2001 From: Robbe Derks Date: Tue, 22 Feb 2022 13:01:53 +0100 Subject: [PATCH] Fix unmetered upload over cell (fix #23811) (#23820) --- selfdrive/athena/athenad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/athena/athenad.py b/selfdrive/athena/athenad.py index cd00e6b50..7250754d5 100755 --- a/selfdrive/athena/athenad.py +++ b/selfdrive/athena/athenad.py @@ -193,7 +193,7 @@ def upload_handler(end_event: threading.Event) -> None: # Abort transfer if connection changed to cell after starting upload sm.update(0) cell = sm['deviceState'].networkType not in [NetworkType.wifi, NetworkType.ethernet] - if cell and (not cur_upload_items[tid].allow_cellular): + if cell and (not cur_upload_items[tid].allow_cellular) and (not cellular_unmetered): raise AbortTransferException cur_upload_items[tid] = cur_upload_items[tid]._replace(progress=cur / sz if sz else 1)