Skip to content

Commit 04a9c7c

Browse files
authored
Merge pull request #22 from ladyada/master
forgot to add Coral as an embedded linux board type
2 parents a107fe7 + 61816ac commit 04a9c7c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

adafruit_platformdetect/board.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ def any_orange_pi(self):
383383
"""Check whether the current board is any defined Orange Pi."""
384384
return self.ORANGE_PI_PC
385385

386+
@property
387+
def any_coral_board(self):
388+
"""Check whether the current board is any defined Coral."""
389+
return self.CORAL_EDGE_TPU_DEV
390+
386391
@property
387392
def any_giant_board(self):
388393
"""Check whether the current board is any defined Giant Board."""
@@ -397,7 +402,8 @@ def any_jetson_board(self):
397402
def any_embedded_linux(self):
398403
"""Check whether the current board is any embedded Linux device."""
399404
return self.any_raspberry_pi or self.any_beaglebone or \
400-
self.any_orange_pi or self.any_giant_board or self.any_jetson_board
405+
self.any_orange_pi or self.any_giant_board or self.any_jetson_board or \
406+
self.any_coral_board
401407

402408
def __getattr__(self, attr):
403409
"""

0 commit comments

Comments
 (0)