diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 4e89f74..ba7cc75 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -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: @@ -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 diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index c38c010..98bdac1 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -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" @@ -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,