Skip to content

Commit e674b64

Browse files
Update board.py
Changed order of discovery, 5 plus, then 5.
1 parent 67136f2 commit e674b64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_platformdetect/board.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@ def _armbian_id(self) -> Optional[str]:
384384
board = boards.ORANGE_PI_4
385385
elif board_value == "orangepi4-lts":
386386
board = boards.ORANGE_PI_4_LTS
387-
elif board_value == "orangepi5":
388-
board = boards.ORANGE_PI_5
389387
elif board_value == "orangepi5-plus":
390388
board = boards.ORANGE_PI_5_PLUS
389+
elif board_value == "orangepi5":
390+
board = boards.ORANGE_PI_5
391391
elif board_value == "bananapim2zero":
392392
board = boards.BANANA_PI_M2_ZERO
393393
elif board_value == "bananapim2plus":
@@ -432,10 +432,10 @@ def _diet_pi_id(self) -> Optional[str]:
432432

433433
def _orange_pi_id(self) -> Optional[str]:
434434
board_value = self.detector.get_device_model()
435-
if "Orange Pi 5" in board_value:
436-
return boards.ORANGE_PI_5
437435
if "Orange Pi 5 Plus" in board_value:
438436
return boards.ORANGE_PI_5_PLUS
437+
if "Orange Pi 5" in board_value:
438+
return boards.ORANGE_PI_5
439439
if "Orange Pi 3B" in board_value:
440440
return boards.ORANGE_PI_3B
441441
return None

0 commit comments

Comments
 (0)