Skip to content

Commit

Permalink
Fix olimex property
Browse files Browse the repository at this point in the history
  • Loading branch information
makermelissa committed Jun 17, 2024
1 parent 441bd45 commit f122397
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit f122397

Please sign in to comment.