Skip to content

Commit ce32900

Browse files
committed
Check rock5c first
1 parent 2fbc1f0 commit ce32900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_platformdetect/board.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -635,10 +635,10 @@ def _rock_pi_id(self) -> Optional[str]:
635635
board = boards.ROCK_PI_E
636636
if self.detector.check_board_name_value() == "ROCK Pi X":
637637
board = boards.ROCK_PI_X
638-
if board_value and "ROCK 5" in board_value.upper():
639-
board = boards.ROCK_PI_5
640638
if board_value and "ROCK 5C" in board_value.upper():
641639
board = boards.ROCK_PI_5C
640+
elif board_value and "ROCK 5" in board_value.upper():
641+
board = boards.ROCK_PI_5
642642
if board_value and "RADXA ROCK 4C+" in board_value.upper():
643643
board = boards.ROCK_PI_4_C_PLUS
644644
if board_value and "RADXA ROCK 4SE" in board_value.upper():

0 commit comments

Comments
 (0)