Skip to content

Commit c7f4b0a

Browse files
authored
Merge pull request #380 from ErikApption/main
added support for orange pi 5 max
2 parents daaf657 + 36e0c4f commit c7f4b0a

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
@@ -500,6 +500,10 @@ def _ameridroid_id(self) -> Optional[str]:
500500

501501
def _orange_pi_id(self) -> Optional[str]:
502502
board_value = self.detector.get_device_model()
503+
if "OPi 5 Max" in board_value:
504+
return boards.ORANGE_PI_5_MAX
505+
if "Orange Pi 5 Max" in board_value:
506+
return boards.ORANGE_PI_5_MAX
503507
if "Orange Pi 5 Plus" in board_value:
504508
return boards.ORANGE_PI_5_PLUS
505509
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)