Skip to content

Commit

Permalink
Merge pull request #365 from DarkMechanikum/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
makermelissa authored Jul 18, 2024
2 parents 9c9fd12 + 234b4d8 commit fa12191
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ def _starfive_id(self) -> Optional[str]:
model = boards.VISIONFIVE2
return model

@property
def any_starfive_id(self):
"""Check whether the current board is any Pine64 device."""
return self.id in boards._STARFIVE_BOARD_IDS

def _pi_id(self) -> Optional[str]:
"""Try to detect id of a Raspberry Pi."""
# Check for Pi boards:
Expand Down Expand Up @@ -1125,6 +1130,7 @@ def lazily_generate_conditions():
yield self.any_milkv_board
yield self.any_luckfox_pico_board
yield self.any_vivid_unit
yield self.any_starfive_id

return any(condition for condition in lazily_generate_conditions())

Expand Down

0 comments on commit fa12191

Please sign in to comment.