Skip to content

Commit 360013a

Browse files
authored
Merge pull request #160 from twa127/master
Fix for Orange Pi Zero 2 detection
2 parents 410a8e2 + ba98c76 commit 360013a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ def _armbian_id(self):
290290
board = boards.ORANGE_PI_ZERO_PLUS_2H5
291291
elif board_value == "orangepizeroplus":
292292
board = boards.ORANGE_PI_ZERO_PLUS
293+
elif board_value == "orangepizero2":
294+
board = boards.ORANGE_PI_ZERO_2
293295
elif board_value == "nanopiair":
294296
board = boards.NANOPI_NEO_AIR
295297
elif board_value == "nanopiduo2":

adafruit_platformdetect/chip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ def _linux_id(self):
195195
if self.detector.check_dt_compatible_value("sun50iw9"):
196196
return chips.H616
197197

198+
if self.detector.check_dt_compatible_value("sun50i-h616"):
199+
return chips.H616
200+
198201
if self.detector.check_dt_compatible_value("mediatek,mt8167"):
199202
return chips.MT8167
200203

0 commit comments

Comments
 (0)