Skip to content

Commit 565e00b

Browse files
authored
Merge pull request #357 from hajimef/develop
Added support for Radxa Rock 5C
2 parents 1ab27ec + ce32900 commit 565e00b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

adafruit_platformdetect/board.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,9 @@ def _rock_pi_id(self) -> Optional[str]:
637637
board = boards.ROCK_PI_E
638638
if self.detector.check_board_name_value() == "ROCK Pi X":
639639
board = boards.ROCK_PI_X
640-
if board_value and "ROCK 5" in board_value.upper():
640+
if board_value and "ROCK 5C" in board_value.upper():
641+
board = boards.ROCK_PI_5C
642+
elif board_value and "ROCK 5" in board_value.upper():
641643
board = boards.ROCK_PI_5
642644
if board_value and "RADXA ROCK 4C+" in board_value.upper():
643645
board = boards.ROCK_PI_4_C_PLUS

adafruit_platformdetect/constants/boards.py

+2
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
ROCK_PI_X = "ROCK_PI_X"
208208
ROCK_PI_E = "ROCK_PI_E"
209209
ROCK_PI_5 = "ROCK_PI_5"
210+
ROCK_PI_5C = "ROCK_PI_5C"
210211

211212
GREATFET_ONE = "GREATFET_ONE"
212213

@@ -543,6 +544,7 @@
543544
RADXA_ZERO,
544545
RADXA_ZERO3,
545546
ROCK_PI_5,
547+
ROCK_PI_5C,
546548
RADXA_CM3,
547549
ROCK_PI_3A,
548550
ROCK_PI_3C,

0 commit comments

Comments
 (0)