From e1bc181cd87783439855496c47e9c062ae2f0aba Mon Sep 17 00:00:00 2001 From: nopnop2002 Date: Sat, 1 Jun 2024 09:09:39 +0900 Subject: [PATCH] Added ORANGE_PI_PC2 --- 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 40a1baae..0f6af75c 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -386,6 +386,8 @@ def _armbian_id(self) -> Optional[str]: board = boards.PINEH64 elif board_value == "orangepi2": board = boards.ORANGE_PI_2 + elif board_value == "orangepipc2": + board = boards.ORANGE_PI_PC2 elif board_value == "orangepi3": board = boards.ORANGE_PI_3 elif board_value == "orangepi3b": diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 2c2c7df8..6cac029a 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -53,6 +53,7 @@ ORANGE_PI_PC_PLUS = "ORANGE_PI_PC_PLUS" ORANGE_PI_PLUS_2E = "ORANGE_PI_PLUS_2E" ORANGE_PI_2 = "ORANGE_PI_2" +ORANGE_PI_PC2 = "ORANGE_PI_PC2" ORANGE_PI_ZERO_PLUS_2H5 = "ORANGE_PI_ZERO_PLUS_2H5" ORANGE_PI_ZERO_PLUS = "ORANGE_PI_ZERO_PLUS" ORANGE_PI_ZERO_2 = "ORANGE_PI_ZERO_2" @@ -260,6 +261,7 @@ ORANGE_PI_PC_PLUS, ORANGE_PI_PLUS_2E, ORANGE_PI_2, + ORANGE_PI_PC2, ORANGE_PI_ZERO_PLUS_2H5, ORANGE_PI_ZERO_PLUS, ORANGE_PI_ZERO_2,