diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 5c1ade88..169f1b63 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -494,6 +494,10 @@ def _ameridroid_id(self) -> Optional[str]: def _orange_pi_id(self) -> Optional[str]: board_value = self.detector.get_device_model() + if "OPi 5 Max" in board_value: + return boards.ORANGE_PI_5_MAX + if "Orange Pi 5 Max" in board_value: + return boards.ORANGE_PI_5_MAX if "Orange Pi 5 Plus" in board_value: return boards.ORANGE_PI_5_PLUS if "Orange Pi 5" in board_value: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 392b4100..12d33160 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -66,6 +66,7 @@ ORANGE_PI_4 = "ORANGE_PI_4" ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS" ORANGE_PI_5 = "ORANGE_PI_5" +ORANGE_PI_5_MAX = "ORANGE_PI_5_MAX" ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS" # Nano Pi boards