Skip to content

Commit 36e0c4f

Browse files
committed
added support for orange pi 5 max
1 parent c9518b0 commit 36e0c4f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ def _ameridroid_id(self) -> Optional[str]:
494494

495495
def _orange_pi_id(self) -> Optional[str]:
496496
board_value = self.detector.get_device_model()
497+
if "OPi 5 Max" in board_value:
498+
return boards.ORANGE_PI_5_MAX
499+
if "Orange Pi 5 Max" in board_value:
500+
return boards.ORANGE_PI_5_MAX
497501
if "Orange Pi 5 Plus" in board_value:
498502
return boards.ORANGE_PI_5_PLUS
499503
if "Orange Pi 5" in board_value:

adafruit_platformdetect/constants/boards.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
ORANGE_PI_4 = "ORANGE_PI_4"
6767
ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS"
6868
ORANGE_PI_5 = "ORANGE_PI_5"
69+
ORANGE_PI_5_MAX = "ORANGE_PI_5_MAX"
6970
ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS"
7071

7172
# Nano Pi boards

0 commit comments

Comments
 (0)