Skip to content

Update board.py #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 13, 2023
Merged
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
4 changes: 2 additions & 2 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def _rk3566_id(self) -> Optional[str]:
board = None
if board_value and "LubanCat-Zero" in board_value:
board = boards.LUBANCAT_ZERO
if board_value and "LubanCat1" in board_value:
if board_value and any(x in board_value for x in ("LubanCat1", "LubanCat-1")):
board = boards.LUBANCAT1
if board_value and "Radxa CM3 IO" in board_value:
board = boards.RADXA_CM3
Expand All @@ -511,7 +511,7 @@ def _rk3568_id(self) -> Optional[str]:
"""Check what type of rk3568 board."""
board_value = self.detector.get_device_model()
board = None
if board_value and "LubanCat2" in board_value:
if board_value and any(x in board_value for x in ("LubanCat2", "LubanCat-2")):
board = boards.LUBANCAT2
if board_value and "ROCK3 Model A" in board_value:
board = boards.ROCK_PI_3A
Expand Down