Skip to content

Commit 3274256

Browse files
committed
MaaXBoards are now detected as generic linux boards
1 parent 3ce8bb1 commit 3274256

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,11 @@ def any_bananapi(self):
610610
"""Check whether the current board is any BananaPi-family system."""
611611
return self.id in boards._BANANA_PI_IDS
612612

613+
@property
614+
def any_maaxboard(self):
615+
"""Check whether the current board is any BananaPi-family system."""
616+
return self.id in boards._MAAXBOARD_IDS
617+
613618
@property
614619
def any_embedded_linux(self):
615620
"""Check whether the current board is any embedded Linux device."""
@@ -636,6 +641,7 @@ def any_embedded_linux(self):
636641
self.any_stm32mp1,
637642
self.any_lubancat,
638643
self.any_bananapi,
644+
self.any_maaxboard,
639645
]
640646
)
641647

adafruit_platformdetect/constants/boards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,4 +463,4 @@
463463
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}
464464

465465
# MaaXBoard boards
466-
_MAAXBOARD_DEV_IDS = ("MAAXBOARD", "MAAXBOARD_MINI")
466+
_MAAXBOARD_IDS = ("MAAXBOARD", "MAAXBOARD_MINI")

0 commit comments

Comments
 (0)