From 911def65edc1921fce0b1f9662c6b7293a3e624a Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Sun, 3 Aug 2025 18:22:08 +0200 Subject: [PATCH] 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("