Skip to content

Commit c52b24b

Browse files
committed
Fix false positive on Tinkerboard
1 parent 4b820a0 commit c52b24b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ def any_udoo_board(self):
419419
"""Check to see if the current board is an UDOO board"""
420420
return self.id in boards._UDOO_BOARD_IDS
421421

422+
@property
422423
def any_asus_tinker_board(self):
423424
"""Check to see if the current board is an ASUS Tinker Board"""
424425
return self.id in boards._ASUS_TINKER_BOARD_IDS

adafruit_platformdetect/constants/boards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
_PINE64_DEV_IDS = (PINE64, PINEBOOK, PINEPHONE)
362362

363363
# ASUS Tinker Board
364-
_ASUS_TINKER_BOARD_DEV_IDS = ASUS_TINKER_BOARD
364+
_ASUS_TINKER_BOARD_DEV_IDS = (ASUS_TINKER_BOARD)
365365

366366
# UDOO
367367
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",)}

0 commit comments

Comments
 (0)