diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 06033880..2edf563d 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -384,6 +384,8 @@ def _armbian_id(self) -> Optional[str]: board = boards.ORANGE_PI_4 elif board_value == "orangepi4-lts": board = boards.ORANGE_PI_4_LTS + elif board_value == "orangepi5-plus": + board = boards.ORANGE_PI_5_PLUS elif board_value == "orangepi5": board = boards.ORANGE_PI_5 elif board_value == "bananapim2zero": @@ -430,6 +432,8 @@ def _diet_pi_id(self) -> Optional[str]: def _orange_pi_id(self) -> Optional[str]: board_value = self.detector.get_device_model() + if "Orange Pi 5 Plus" in board_value: + return boards.ORANGE_PI_5_PLUS if "Orange Pi 5" in board_value: return boards.ORANGE_PI_5 if "Orange Pi 3B" in board_value: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 90255d53..d1a8bc60 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -62,6 +62,7 @@ ORANGE_PI_4 = "ORANGE_PI_4" ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS" ORANGE_PI_5 = "ORANGE_PI_5" +ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS" # Nano Pi boards NANOPI_NEO_AIR = "NANOPI_NEO_AIR" @@ -256,6 +257,7 @@ ORANGE_PI_4, ORANGE_PI_4_LTS, ORANGE_PI_5, + ORANGE_PI_5_PLUS, ) # NanoPi