Skip to content

Commit 2b3b7ef

Browse files
authored
Merge pull request #293 from makermelissa/debian_orange_pi
Fix detection for Orange Pi Zero 2 on Debian
2 parents 69daccf + 184e5a9 commit 2b3b7ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,7 @@ def _allwinner_variants_id(self) -> Optional[str]:
622622
if "nanopi" in board_value:
623623
if "neo" in board_value and "SUN8I" in chip_id:
624624
board = boards.NANOPI_NEO_AIR
625-
# TODO: Add other specifc board contexts here
626-
elif "orange pi" in board_value:
625+
elif any(x in board_value for x in ("orange pi", "orangepi")):
627626
if "zero" in board_value:
628627
if "H5" in chip_id:
629628
board = boards.ORANGE_PI_ZERO_PLUS_2H5

0 commit comments

Comments
 (0)