Skip to content

Commit 2054c4c

Browse files
committed
Add OrangePI R1 detetion
1 parent e77bf9d commit 2054c4c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,16 +335,10 @@ def _armbian_id(self):
335335
board_value = self.detector.get_armbian_release_field('BOARD')
336336
if board_value == "orangepipc":
337337
return ORANGE_PI_PC
338-
return None
339-
340-
def _armbian_id(self):
341-
"""Check whether the current board is an OrangePi R1."""
342-
board_value = self.detector.get_armbian_release_field('BOARD')
343-
if board_value == "orangepi-r1":
338+
if board_value == "orangepi-r1":
344339
return ORANGE_PI_R1
345340
return None
346341

347-
348342
def _sama5_id(self):
349343
"""Check what type sama5 board."""
350344
board_value = self.detector.get_device_model()

0 commit comments

Comments
 (0)