Merge pull request #293 from makermelissa/debian_orange_pi

Fix detection for Orange Pi Zero 2 on Debian
This commit is contained in:
Melissa LeBlanc-Williams 2023-05-10 11:03:39 -07:00 committed by GitHub
commit 2b3b7eff8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -622,8 +622,7 @@ class Board:
if "nanopi" in board_value: if "nanopi" in board_value:
if "neo" in board_value and "SUN8I" in chip_id: if "neo" in board_value and "SUN8I" in chip_id:
board = boards.NANOPI_NEO_AIR board = boards.NANOPI_NEO_AIR
# TODO: Add other specifc board contexts here elif any(x in board_value for x in ("orange pi", "orangepi")):
elif "orange pi" in board_value:
if "zero" in board_value: if "zero" in board_value:
if "H5" in chip_id: if "H5" in chip_id:
board = boards.ORANGE_PI_ZERO_PLUS_2H5 board = boards.ORANGE_PI_ZERO_PLUS_2H5