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:35 +08:00 committed by GitHub
parent 9f42d9e5c6
commit d354b1fff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -501,7 +501,7 @@ class Board:
board = None
if board_value and "LubanCat-Zero" in board_value:
board = boards.LUBANCAT_ZERO
if board_value and "LubanCat-1" 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