From 911def65edc1921fce0b1f9662c6b7293a3e624a Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Sun, 3 Aug 2025 18:22:08 +0200 Subject: [PATCH 1/3] Keep supporting White/Black pandas from Python side (#2252) Support White/Black pandas from Python --- python/__init__.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/python/__init__.py b/python/__init__.py index 1edaa9f2..e1846b1f 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -114,6 +114,8 @@ class Panda: # from https://github.com/commaai/openpilot/blob/103b4df18cbc38f4129555ab8b15824d1a672bdf/cereal/log.capnp#L648 HW_TYPE_UNKNOWN = b'\x00' + HW_TYPE_WHITE = b'\x01' + HW_TYPE_BLACK = b'\x03' HW_TYPE_DOS = b'\x06' HW_TYPE_RED_PANDA = b'\x07' HW_TYPE_TRES = b'\x09' @@ -125,10 +127,11 @@ class Panda: HEALTH_STRUCT = struct.Struct(" Date: Sun, 3 Aug 2025 10:38:58 -0700 Subject: [PATCH 2/3] CI: auto-update cppcheck weekly (#2253) * CI: auto-update cppcheck weekly * no push --- .github/workflows/update-cppcheck.yml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/update-cppcheck.yml diff --git a/.github/workflows/update-cppcheck.yml b/.github/workflows/update-cppcheck.yml new file mode 100644 index 00000000..6a2816fb --- /dev/null +++ b/.github/workflows/update-cppcheck.yml @@ -0,0 +1,37 @@ +name: Update cppcheck + +on: + #push: + schedule: + - cron: "0 14 * * 1" # every Monday at 2am UTC (6am PST) + workflow_dispatch: + +jobs: + update-cppcheck: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - uses: actions/checkout@v4 + - name: Get latest cppcheck version + id: version + run: | + LATEST=$(curl -fsSL https://api.github.com/repos/danmar/cppcheck/releases/latest | jq -r .tag_name) + echo "vers=$LATEST" >> "$GITHUB_OUTPUT" + - name: Update VERS in install.sh + run: | + sed -i "s/^VERS=\".*\"/VERS=\"${{ steps.version.outputs.vers }}\"/" tests/misra/install.sh + grep VERS tests/misra/install.sh + - name: Create Pull Request + uses: peter-evans/create-pull-request@9153d834b60caba6d51c9b9510b087acf9f33f83 + with: + author: Vehicle Researcher + token: ${{ secrets.ACTIONS_CREATE_PR_PAT }} + commit-message: "[bot] Update cppcheck to ${{ steps.version.outputs.vers }}" + title: "[bot] Update cppcheck to ${{ steps.version.outputs.vers }}" + body: "See all cppcheck releases: https://github.com/danmar/cppcheck/releases" + branch: "update-cppcheck" + base: "master" + delete-branch: true + labels: bot From 5b0f1a2eca710121ef7573f1d183d4bc6c07b6ec Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 4 Aug 2025 16:32:30 -0700 Subject: [PATCH 3/3] Panda.list() optimization for comma three (#2255) Co-authored-by: Comma Device --- python/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/__init__.py b/python/__init__.py index e1846b1f..72c4f8db 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -352,9 +352,10 @@ class Panda: return isinstance(self._handle, PandaUsbHandle) @classmethod - def list(cls): + def list(cls, usb_only: bool = False): ret = cls.usb_list() - ret += cls.spi_list() + if not usb_only: + ret += cls.spi_list() return list(set(ret)) @classmethod