Skip to content

Commit 35da22e

Browse files
authored
Merge pull request #361 from makermelissa/main
Fix olimex property
2 parents 441bd45 + f122397 commit 35da22e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

adafruit_platformdetect/board.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1022,9 +1022,9 @@ def any_nxp_navq_board(self) -> bool:
10221022
return self.id in boards._NXP_SOM_IDS
10231023

10241024
@property
1025-
def any_olimex_lime2_board(self):
1025+
def any_olimex_board(self):
10261026
"""Check whether the current board is any Pine64 device."""
1027-
return self.id in boards.OLIMEX_LIME2
1027+
return self.id in boards._OLIMEX_IDS
10281028

10291029
@property
10301030
def any_repka_board(self):
@@ -1099,7 +1099,7 @@ def lazily_generate_conditions():
10991099
yield self.generic_linux
11001100
yield self.any_nxp_navq_board
11011101
yield self.any_walnutpi
1102-
yield self.any_olimex_lime2_board
1102+
yield self.any_olimex_board
11031103
yield self.any_repka_board
11041104
yield self.any_milkv_board
11051105
yield self.any_luckfox_pico_board

adafruit_platformdetect/constants/boards.py

+2
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@
455455

456456
_SIFIVE_IDS = (SIFIVE_UNLEASHED,)
457457

458+
_OLIMEX_IDS = (OLIMEX_LIME2,)
459+
458460
# BeagleBone eeprom board ids from:
459461
# https://github.com/beagleboard/image-builder
460462
# Thanks to zmatt on freenode #beagle for pointers.

0 commit comments

Comments
 (0)