Skip to content

Commit 407208c

Browse files
changed starfive board detection function
1 parent e663398 commit 407208c

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,9 +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() == board_value.casefold():
234+
if "starfive,visionfive-v2starfive,jh7110".casefold().strip() == board_value.casefold().strip():
235235
model = boards.VISIONFIVE2
236-
print(type(board_value))
237236
return model
238237
def _pi_id(self) -> Optional[str]:
239238
"""Try to detect id of a Raspberry Pi."""

0 commit comments

Comments
 (0)