Skip to content

Commit 94bbfd5

Browse files
authored
Merge pull request #118 from SecT0uch/master
SoPine (Pine64) detection
2 parents 5fe73c7 + 141ac82 commit 94bbfd5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

adafruit_platformdetect/board.py

+2
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ def _pine64_id(self):
312312
board = boards.PINEBOOK
313313
elif "pinephone" in board_value.lower():
314314
board = boards.PINEPHONE
315+
elif "sopine" in board_value.lower():
316+
board = boards.SOPINE
315317
return board
316318

317319
# pylint: disable=no-self-use

adafruit_platformdetect/constants/boards.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
PINEH64 = "PINEH64"
105105
PINEBOOK = "PINEBOOK"
106106
PINEPHONE = "PINEPHONE"
107+
SOPINE = "SOPINE"
107108

108109
ROCK_PI_S = "ROCK_PI_S"
109110

@@ -402,7 +403,7 @@
402403
_ONION_OMEGA_BOARD_IDS = (ONION_OMEGA, ONION_OMEGA2)
403404

404405
# Pine64 boards and devices
405-
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE)
406+
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE, SOPINE)
406407

407408
# UDOO
408409
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}

0 commit comments

Comments
 (0)