Skip to content

Commit e663398

Browse files
changed starfive board detection function
1 parent b6162a3 commit e663398

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,9 @@ def id(self) -> Optional[str]:
231231
def _starfive_id(self) -> Optional[str]:
232232
model = None
233233
board_value = self.detector.get_device_compatible()
234-
if "visionfive-v2starfive" in board_value:
234+
if "starfive,visionfive-v2starfive,jh7110".casefold() == board_value.casefold():
235235
model = boards.VISIONFIVE2
236236
print(type(board_value))
237-
print(type("visionfive-v2starfive"))
238237
return model
239238
def _pi_id(self) -> Optional[str]:
240239
"""Try to detect id of a Raspberry Pi."""

0 commit comments

Comments
 (0)