Skip to content

Fix Libre AML_S905X_CC LePotato not being detected as Linux #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,11 @@ def any_lichee_riscv_board(self) -> bool:
"""Check whether the current board is any defined Lichee RISC-V."""
return self.id in boards._LICHEE_RISCV_IDS

@property
def any_libre_computer_board(self) -> bool:
"""Check whether the current board is any defined Libre Computer board."""
return self.id in boards._LIBRE_COMPUTER_IDS

@property
def any_embedded_linux(self) -> bool:
"""Check whether the current board is any embedded Linux device."""
Expand Down Expand Up @@ -751,6 +756,7 @@ def any_embedded_linux(self) -> bool:
self.any_siemens_simatic_iot2000,
self.any_lichee_riscv_board,
self.any_pcduino_board,
self.any_libre_computer_board,
]
)

Expand Down Expand Up @@ -809,11 +815,6 @@ def greatfet_one(self) -> bool:
"""Check whether the current board is a GreatFET One."""
return self.id == boards.GREATFET_ONE

@property
def aml_s905x_cc(self) -> bool:
"""Check whether the current board is a aml-s905x-cc One."""
return self.id == boards.AML_S905X_CC

def __getattr__(self, attr: str) -> bool:
"""
Detect whether the given attribute is the currently-detected board. See list
Expand Down
2 changes: 1 addition & 1 deletion adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,4 +546,4 @@
AML_S905X_CC = "AML-S905X-CC"

# Libre Computer Boards
_LIBRE_COMPUTER_IDS = AML_S905X_CC
_LIBRE_COMPUTER_IDS = (AML_S905X_CC,)