Skip to content

Commit f2546e7

Browse files
committed
change name to ROCK_PI_3A
1 parent 14be48c commit f2546e7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

adafruit_platformdetect/board.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def _armbian_id(self) -> Optional[str]:
369369
elif board_value == "pcduino3":
370370
board = boards.PCDUINO3
371371
elif board_value == "rock-3a":
372-
board = boards.RADXA_3A
372+
board = boards.ROCK_PI_3A
373373
return board
374374

375375
# pylint: enable=too-many-return-statements
@@ -501,7 +501,7 @@ def _rk3568_id(self) -> Optional[str]:
501501
if board_value and "LubanCat2" in board_value:
502502
board = boards.LUBANCAT2
503503
if board_value and "ROCK3 Model A" in board_value:
504-
board = boards.RADXA_3A
504+
board = boards.ROCK_PI_3A
505505
return board
506506

507507
def _rock_pi_id(self) -> Optional[str]:
@@ -521,7 +521,7 @@ def _rock_pi_id(self) -> Optional[str]:
521521
if board_value and "RADXA ROCK 4C+" in board_value.upper():
522522
board = boards.ROCK_PI_4_C_PLUS
523523
if board_value and "ROCK3 Model A" in board_value:
524-
board = boards.RADXA_3A
524+
board = boards.ROCK_PI_3A
525525
return board
526526

527527
def _clockwork_pi_id(self) -> Optional[str]:

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@
165165

166166
RADXA_ZERO = "RADXA_ZERO"
167167
RADXA_CM3 = "RADXA_CM3"
168-
RADXA_3A = "ROCK_PI_3A"
169168

169+
ROCK_PI_3A = "ROCK_PI_3A"
170170
ROCK_PI_S = "ROCK_PI_S"
171171
ROCK_PI_4 = "ROCK_PI_4"
172172
ROCK_PI_4_C_PLUS = "ROCK_PI_4C+"
@@ -551,6 +551,7 @@
551551
RADXA_ZERO,
552552
ROCK_PI_5,
553553
RADXA_CM3,
554+
ROCK_PI_3A,
554555
)
555556

556557
# UDOO

0 commit comments

Comments
 (0)