Skip to content

Commit 05220e5

Browse files
changed starfive board detection function
1 parent 2bb3b99 commit 05220e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,8 @@ 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 "starfive,visionfive-v2starfive,jh7110".casefold().strip() == board_value.casefold().strip():
234+
if board_value == "starfive,visionfive-v2starfive,jh7110":
235235
model = boards.VISIONFIVE2
236-
print("starfive,visionfive-v2starfive,jh7110".casefold().strip())
237-
print(board_value.casefold().strip())
238236
return model
239237
def _pi_id(self) -> Optional[str]:
240238
"""Try to detect id of a Raspberry Pi."""

0 commit comments

Comments
 (0)