Skip to content

Commit 54e97bb

Browse files
authored
Merge pull request #288 from mmontol/main
Update board.py
2 parents 8064204 + bb31782 commit 54e97bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def _rk3566_id(self) -> Optional[str]:
501501
board = None
502502
if board_value and "LubanCat-Zero" in board_value:
503503
board = boards.LUBANCAT_ZERO
504-
if board_value and "LubanCat1" in board_value:
504+
if board_value and any(x in board_value for x in ("LubanCat1", "LubanCat-1")):
505505
board = boards.LUBANCAT1
506506
if board_value and "Radxa CM3 IO" in board_value:
507507
board = boards.RADXA_CM3
@@ -511,7 +511,7 @@ def _rk3568_id(self) -> Optional[str]:
511511
"""Check what type of rk3568 board."""
512512
board_value = self.detector.get_device_model()
513513
board = None
514-
if board_value and "LubanCat2" in board_value:
514+
if board_value and any(x in board_value for x in ("LubanCat2", "LubanCat-2")):
515515
board = boards.LUBANCAT2
516516
if board_value and "ROCK3 Model A" in board_value:
517517
board = boards.ROCK_PI_3A

0 commit comments

Comments
 (0)