Skip to content

Commit 67136f2

Browse files
Update board.py
Added detection of Orange Pi 5 Plus
1 parent bd1197f commit 67136f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ def _armbian_id(self) -> Optional[str]:
386386
board = boards.ORANGE_PI_4_LTS
387387
elif board_value == "orangepi5":
388388
board = boards.ORANGE_PI_5
389+
elif board_value == "orangepi5-plus":
390+
board = boards.ORANGE_PI_5_PLUS
389391
elif board_value == "bananapim2zero":
390392
board = boards.BANANA_PI_M2_ZERO
391393
elif board_value == "bananapim2plus":
@@ -432,6 +434,8 @@ def _orange_pi_id(self) -> Optional[str]:
432434
board_value = self.detector.get_device_model()
433435
if "Orange Pi 5" in board_value:
434436
return boards.ORANGE_PI_5
437+
if "Orange Pi 5 Plus" in board_value:
438+
return boards.ORANGE_PI_5_PLUS
435439
if "Orange Pi 3B" in board_value:
436440
return boards.ORANGE_PI_3B
437441
return None

0 commit comments

Comments
 (0)