File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 25
25
GENERIC_LINUX_PC = "GENERIC_LINUX_PC"
26
26
PYBOARD = "PYBOARD"
27
27
NODEMCU = "NODEMCU"
28
- ORANGE_PI_PC = "ORANGE_PI_PC"
29
- ORANGE_PI_R1 = "ORANGE_PI_R1"
30
28
GIANT_BOARD = "GIANT_BOARD"
31
29
32
30
# NVIDIA Jetson boards
60
58
FTDI_FT232H = "FT232H"
61
59
# pylint: enable=bad-whitespace
62
60
61
+ #OrangePI
62
+ _ORANGE_PI_IDS = (
63
+ ORANGE_PI_PC ,
64
+ ORANGE_PI_R1
65
+ )
66
+
63
67
_CORAL_IDS = (
64
68
CORAL_EDGE_TPU_DEV ,
65
69
)
@@ -331,11 +335,11 @@ def _beaglebone_id(self):
331
335
# pylint: enable=no-self-use
332
336
333
337
def _armbian_id (self ):
334
- """Check whether the current board is an OrangePi PC."""
338
+ """Check whether the current board is an OrangePi PC or OrangePI R1 ."""
335
339
board_value = self .detector .get_armbian_release_field ('BOARD' )
336
340
if board_value == "orangepipc" :
337
341
return ORANGE_PI_PC
338
- if board_value == "orangepi-r1" :
342
+ if board_value == "orangepi-r1" :
339
343
return ORANGE_PI_R1
340
344
return None
341
345
@@ -384,7 +388,7 @@ def any_beaglebone(self):
384
388
@property
385
389
def any_orange_pi (self ):
386
390
"""Check whether the current board is any defined Orange Pi."""
387
- return self .ORANGE_PI_PC
391
+ return self .ORANGE_PI_IDS
388
392
389
393
@property
390
394
def any_coral_board (self ):
You can’t perform that action at this time.
0 commit comments