Update adafruit_platformdetect/board.py

Co-authored-by: Melissa LeBlanc-Williams <melissa@adafruit.com>
This commit is contained in:
Yuyue 2023-04-13 09:18:42 +08:00 committed by GitHub
parent d354b1fff5
commit 5e8e88c11b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -511,7 +511,7 @@ class Board:
"""Check what type of rk3568 board.""" """Check what type of rk3568 board."""
board_value = self.detector.get_device_model() board_value = self.detector.get_device_model()
board = None board = None
if board_value and "LubanCat-2" in board_value: if board_value and any([x in board_value for x in ("LubanCat2", "LubanCat-2")]):
board = boards.LUBANCAT2 board = boards.LUBANCAT2
if board_value and "ROCK3 Model A" in board_value: if board_value and "ROCK3 Model A" in board_value:
board = boards.ROCK_PI_3A board = boards.ROCK_PI_3A