Add OrangePI R1 detetion

This commit is contained in:
Martin Volek 2019-05-17 07:17:32 +02:00
parent e77bf9dd99
commit 2054c4cca9

View file

@ -335,16 +335,10 @@ class Board:
board_value = self.detector.get_armbian_release_field('BOARD')
if board_value == "orangepipc":
return ORANGE_PI_PC
return None
def _armbian_id(self):
"""Check whether the current board is an OrangePi R1."""
board_value = self.detector.get_armbian_release_field('BOARD')
if board_value == "orangepi-r1":
if board_value == "orangepi-r1":
return ORANGE_PI_R1
return None
def _sama5_id(self):
"""Check what type sama5 board."""
board_value = self.detector.get_device_model()