We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f59895f commit 5a4de64Copy full SHA for 5a4de64
adafruit_platformdetect/board.py
@@ -231,13 +231,10 @@ def id(self) -> Optional[str]:
231
def _starfive_id(self) -> Optional[str]:
232
model = None
233
board_value = self.detector.get_device_compatible()
234
- if board_value == 'starfive,visionfive-v2starfive,jh7110':
235
- print('it is')
+ if "visionfive-v2starfive" in board_value:
236
model = boards.VISIONFIVE2
237
- else:
238
- print(board_value)
239
- print('is not')
240
- print('starfive,visionfive-v2starfive,jh7110')
+ print(board_value == "starfive,visionfive-v2starfive,jh7110")
+ print(type(board_value))
241
return model
242
def _pi_id(self) -> Optional[str]:
243
"""Try to detect id of a Raspberry Pi."""
0 commit comments