Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading