Skip to content

Commit fa12191

Browse files
authored
Merge pull request #365 from DarkMechanikum/dev
Dev
2 parents 9c9fd12 + 234b4d8 commit fa12191

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

adafruit_platformdetect/board.py

+6
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ def _starfive_id(self) -> Optional[str]:
234234
model = boards.VISIONFIVE2
235235
return model
236236

237+
@property
238+
def any_starfive_id(self):
239+
"""Check whether the current board is any Pine64 device."""
240+
return self.id in boards._STARFIVE_BOARD_IDS
241+
237242
def _pi_id(self) -> Optional[str]:
238243
"""Try to detect id of a Raspberry Pi."""
239244
# Check for Pi boards:
@@ -1125,6 +1130,7 @@ def lazily_generate_conditions():
11251130
yield self.any_milkv_board
11261131
yield self.any_luckfox_pico_board
11271132
yield self.any_vivid_unit
1133+
yield self.any_starfive_id
11281134

11291135
return any(condition for condition in lazily_generate_conditions())
11301136

0 commit comments

Comments
 (0)