Skip to content
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

Fix olimex property #361

Merged
merged 1 commit into from
Jun 17, 2024
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
6 changes: 3 additions & 3 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,9 @@ def any_nxp_navq_board(self) -> bool:
return self.id in boards._NXP_SOM_IDS

@property
def any_olimex_lime2_board(self):
def any_olimex_board(self):
"""Check whether the current board is any Pine64 device."""
return self.id in boards.OLIMEX_LIME2
return self.id in boards._OLIMEX_IDS

@property
def any_repka_board(self):
Expand Down Expand Up @@ -1099,7 +1099,7 @@ def lazily_generate_conditions():
yield self.generic_linux
yield self.any_nxp_navq_board
yield self.any_walnutpi
yield self.any_olimex_lime2_board
yield self.any_olimex_board
yield self.any_repka_board
yield self.any_milkv_board
yield self.any_luckfox_pico_board
Expand Down
2 changes: 2 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@

_SIFIVE_IDS = (SIFIVE_UNLEASHED,)

_OLIMEX_IDS = (OLIMEX_LIME2,)

# BeagleBone eeprom board ids from:
# https://github.com/beagleboard/image-builder
# Thanks to zmatt on freenode #beagle for pointers.
Expand Down
Loading