Skip to content

Commit a3371ad

Browse files
authored
Merge pull request #280 from shulltronics/main
Fix detection of Pine64 devices
2 parents 8039704 + 981b914 commit a3371ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_platformdetect/board.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,14 +452,14 @@ def _pine64_id(self) -> Optional[str]:
452452
"""Try to detect the id for Pine64 board or device."""
453453
board_value = self.detector.get_device_model()
454454
board = None
455-
if "pine64" in board_value.lower():
455+
if "pinephone" in board_value.lower():
456+
board = boards.PINEPHONE
457+
elif "pine64" in board_value.lower():
456458
board = boards.PINE64
457459
elif "pine h64" in board_value.lower():
458460
board = boards.PINEH64
459461
elif "pinebook" in board_value.lower():
460462
board = boards.PINEBOOK
461-
elif "pinephone" in board_value.lower():
462-
board = boards.PINEPHONE
463463
elif "sopine" in board_value.lower():
464464
board = boards.SOPINE
465465
return board

0 commit comments

Comments
 (0)