Skip to content

Commit

Permalink
Merge branch 'commaai:master' into PA-dev2
Browse files Browse the repository at this point in the history
  • Loading branch information
Edison-CBS authored Dec 9, 2024
2 parents 80b160f + 57fc4f7 commit 41f473f
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 136 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci_weekly_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ jobs:
uses: commaai/openpilot/.github/workflows/selfdrive_tests.yaml@master
with:
run_number: ${{ inputs.run_number }}
tools_tests:
uses: commaai/openpilot/.github/workflows/tools_tests.yaml@master
with:
run_number: ${{ inputs.run_number }}
3 changes: 0 additions & 3 deletions selfdrive/assets/img_driver_face_static.png

This file was deleted.

2 changes: 1 addition & 1 deletion selfdrive/modeld/models/supercombo.onnx
Git LFS file not shown
10 changes: 6 additions & 4 deletions system/athena/athenad.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
MAX_RETRY_COUNT = 30 # Try for at most 5 minutes if upload fails immediately
MAX_AGE = 31 * 24 * 3600 # seconds
WS_FRAME_SIZE = 4096
DEVICE_STATE_UPDATE_INTERVAL = 1.0 # in seconds

NetworkType = log.DeviceState.NetworkType

Expand Down Expand Up @@ -213,10 +214,11 @@ def retry_upload(tid: int, end_event: threading.Event, increase_count: bool = Tr
def cb(sm, item, tid, end_event: threading.Event, sz: int, cur: int) -> None:
# Abort transfer if connection changed to metered after starting upload
# or if athenad is shutting down to re-connect the websocket
sm.update(0)
metered = sm['deviceState'].networkMetered
if metered and (not item.allow_cellular):
raise AbortTransferException
if not item.allow_cellular:
if (time.monotonic() - sm.recv_time['deviceState']) > DEVICE_STATE_UPDATE_INTERVAL:
sm.update(0)
if sm['deviceState'].networkMetered:
raise AbortTransferException

if end_event.is_set():
raise AbortTransferException
Expand Down
Loading

0 comments on commit 41f473f

Please sign in to comment.