Skip to content

Commit

Permalink
Merge pull request #357 from hajimef/develop
Browse files Browse the repository at this point in the history
Added support for Radxa Rock 5C
  • Loading branch information
makermelissa authored Jun 6, 2024
2 parents 1ab27ec + ce32900 commit 565e00b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,9 @@ def _rock_pi_id(self) -> Optional[str]:
board = boards.ROCK_PI_E
if self.detector.check_board_name_value() == "ROCK Pi X":
board = boards.ROCK_PI_X
if board_value and "ROCK 5" in board_value.upper():
if board_value and "ROCK 5C" in board_value.upper():
board = boards.ROCK_PI_5C
elif board_value and "ROCK 5" in board_value.upper():
board = boards.ROCK_PI_5
if board_value and "RADXA ROCK 4C+" in board_value.upper():
board = boards.ROCK_PI_4_C_PLUS
Expand Down
2 changes: 2 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
ROCK_PI_X = "ROCK_PI_X"
ROCK_PI_E = "ROCK_PI_E"
ROCK_PI_5 = "ROCK_PI_5"
ROCK_PI_5C = "ROCK_PI_5C"

GREATFET_ONE = "GREATFET_ONE"

Expand Down Expand Up @@ -543,6 +544,7 @@
RADXA_ZERO,
RADXA_ZERO3,
ROCK_PI_5,
ROCK_PI_5C,
RADXA_CM3,
ROCK_PI_3A,
ROCK_PI_3C,
Expand Down

0 comments on commit 565e00b

Please sign in to comment.