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
8 changes: 7 additions & 1 deletion adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ def id(self) -> Optional[str]:
elif chip_id == chips.T527:
board_id = self._armbian_id() or self._allwinner_variants_id()
elif chip_id == chips.H618:
board_id = self._armbian_id() or self._allwinner_variants_id()
board_id = (
self._armbian_id()
or self._allwinner_variants_id()
or self._orange_pi_id()
)
elif chip_id == chips.H616:
board_id = self._armbian_id() or self._allwinner_variants_id()
elif chip_id == chips.A33:
Expand Down Expand Up @@ -541,6 +545,8 @@ def _orange_pi_id(self) -> Optional[str]:
return boards.ORANGE_PI_5
if "Orange Pi 3B" in board_value:
return boards.ORANGE_PI_3B
if "OrangePi Zero 2W" in board_value:
return boards.ORANGE_PI_ZERO_2W
return None

# pylint: enable=too-many-return-statements
Expand Down
2 changes: 2 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
ORANGE_PI_ZERO_PLUS_2H5 = "ORANGE_PI_ZERO_PLUS_2H5"
ORANGE_PI_ZERO_PLUS = "ORANGE_PI_ZERO_PLUS"
ORANGE_PI_ZERO_2 = "ORANGE_PI_ZERO_2"
ORANGE_PI_ZERO_2W = "ORANGE_PI_ZERO_2W"
ORANGE_PI_ZERO_3 = "ORANGE_PI_ZERO_3"
ORANGE_PI_3 = "ORANGE_PI_3"
ORANGE_PI_3B = "ORANGE_PI_3B"
Expand Down Expand Up @@ -317,6 +318,7 @@
ORANGE_PI_ZERO_PLUS_2H5,
ORANGE_PI_ZERO_PLUS,
ORANGE_PI_ZERO_2,
ORANGE_PI_ZERO_2W,
ORANGE_PI_3,
ORANGE_PI_3B,
ORANGE_PI_3_LTS,
Expand Down
Loading