Skip to content

Commit d4d2c00

Browse files
changed starfive board detection function
1 parent aa493d0 commit d4d2c00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ def id(self) -> Optional[str]:
229229
# pylint: enable=invalid-name
230230
def _starfive_id(self) -> Optional[str]:
231231
model = None
232-
board_value = self.detector.get_device_compatible()
233-
if 'visionfive-v2starfive' in str(board_value):
232+
model_value = self.detector.get_device_model()
233+
if model_value == "StarFive VisionFive V2":
234234
model = boards.VISIONFIVE2
235235
return model
236236

0 commit comments

Comments
 (0)