From e355772359be4614c82448a7eeabb365a486d8c2 Mon Sep 17 00:00:00 2001 From: mmontol Date: Sat, 15 Jun 2024 16:49:44 +0800 Subject: [PATCH] Add support for lubancat-5 --- adafruit_platformdetect/board.py | 2 ++ adafruit_platformdetect/constants/boards.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 19caf5b..3057ca8 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -623,6 +623,8 @@ def _rk3588_id(self) -> Optional[str]: board = None if board_value and "LubanCat-4" in board_value: board = boards.LUBANCAT4 + if board_value and "LubanCat-5" in board_value: + board = boards.LUBANCAT5 return board def _rock_pi_id(self) -> Optional[str]: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 6836815..b60de08 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -119,6 +119,7 @@ LUBANCAT1 = "LUBANCAT1" LUBANCAT2 = "LUBANCAT2" LUBANCAT4 = "LUBANCAT4" +LUBANCAT5 = "LUBANCAT5" # Various Raspberry Pi models RASPBERRY_PI_B_REV1 = "RASPBERRY_PI_B_REV1" @@ -309,6 +310,7 @@ LUBANCAT1, LUBANCAT2, LUBANCAT4, + LUBANCAT5, ) # Coral boards