File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,14 @@ def _udoo_id(self):
326
326
return board_id
327
327
return None
328
328
329
+ def _asus_tinker_board_id (self ):
330
+ """Check what type of Tinker Board."""
331
+ board_value = self .detector .get_device_model ()
332
+ board = None
333
+ if board_value and "ASUS Tinker Board" in board_value :
334
+ board = boards .ASUS_TINKER_BOARD
335
+ return board
336
+
329
337
@property
330
338
def any_96boards (self ):
331
339
"""Check whether the current board is any 96boards board."""
@@ -411,6 +419,10 @@ def any_udoo_board(self):
411
419
"""Check to see if the current board is an UDOO board"""
412
420
return self .id in boards ._UDOO_BOARD_IDS
413
421
422
+ def any_asus_tinker_board (self ):
423
+ """Check to see if the current board is an ASUS Tinker Board"""
424
+ return self .id in boards ._ASUS_Tinker_Board
425
+
414
426
@property
415
427
def any_embedded_linux (self ):
416
428
"""Check whether the current board is any embedded Linux device."""
@@ -431,6 +443,7 @@ def any_embedded_linux(self):
431
443
self .any_rock_pi_board ,
432
444
self .any_clockwork_pi_board ,
433
445
self .any_udoo_board ,
446
+ self .any_asus_tinker_board ,
434
447
]
435
448
)
436
449
You can’t perform that action at this time.
0 commit comments