From 680c8f4618a9b2bbbb80709f9e4041edc29f3ee8 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Wed, 25 Feb 2026 02:41:38 -0500 Subject: [PATCH] Reapply "it's just unsupported" This reverts commit 94c60823a47e505cd3c86336558dc5af30dabc06. --- python/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python/__init__.py b/python/__init__.py index 89093a47..8bcb4f83 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -112,8 +112,6 @@ 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_RED_PANDA = b'\x07' HW_TYPE_TRES = b'\x09' HW_TYPE_CUATRO = b'\x0a' @@ -210,8 +208,7 @@ class Panda: logger.debug("connected") hw_type = self.get_type() - if hw_type not in self.SUPPORTED_DEVICES: - print("WARNING: Using deprecated HW") + assert hw_type in self.SUPPORTED_DEVICES, f"Unknown HW: {hw_type}" # disable openpilot's heartbeat checks if self._disable_checks: