Skip to content

Commit 0bcb1d0

Browse files
committed
Fix detection for Orange Pi Zero 2 on Debian
1 parent dc6b5c5 commit 0bcb1d0

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
@@ -607,8 +607,7 @@ def _allwinner_variants_id(self) -> Optional[str]:
607607
if "nanopi" in board_value:
608608
if "neo" in board_value and "SUN8I" in chip_id:
609609
board = boards.NANOPI_NEO_AIR
610-
# TODO: Add other specifc board contexts here
611-
elif "orange pi" in board_value:
610+
elif any(x in board_value for x in ("orange pi", "orangepi")):
612611
if "zero" in board_value:
613612
if "H5" in chip_id:
614613
board = boards.ORANGE_PI_ZERO_PLUS_2H5

0 commit comments

Comments
 (0)