Skip to content

Commit 96b0c05

Browse files
changed starfive board detection function
1 parent 90295ca commit 96b0c05

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
@@ -231,8 +231,8 @@ def _starfive_id(self) -> Optional[str]:
231231
model = None
232232
model_value = self.detector.get_device_model()
233233
print(model_value)
234-
#if model_value == "StarFive VisionFive V2":
235-
model = boards.VISIONFIVE2
234+
if "VisionFive" in model_value and "V2" in model_value:
235+
model = boards.VISIONFIVE2
236236
return model
237237

238238
def _pi_id(self) -> Optional[str]:

0 commit comments

Comments
 (0)