Skip to content

Commit 5a4de64

Browse files
changed starfive board detection function
1 parent f59895f commit 5a4de64

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

adafruit_platformdetect/board.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,10 @@ 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 board_value == 'starfive,visionfive-v2starfive,jh7110':
235-
print('it is')
234+
if "visionfive-v2starfive" in board_value:
236235
model = boards.VISIONFIVE2
237-
else:
238-
print(board_value)
239-
print('is not')
240-
print('starfive,visionfive-v2starfive,jh7110')
236+
print(board_value == "starfive,visionfive-v2starfive,jh7110")
237+
print(type(board_value))
241238
return model
242239
def _pi_id(self) -> Optional[str]:
243240
"""Try to detect id of a Raspberry Pi."""

0 commit comments

Comments
 (0)