changed starfive board detection function

This commit is contained in:
DarkMechanikum 2024-06-27 00:00:46 +03:00
parent 90295ca01b
commit 96b0c0572c

View file

@ -231,8 +231,8 @@ class Board:
model = None
model_value = self.detector.get_device_model()
print(model_value)
#if model_value == "StarFive VisionFive V2":
model = boards.VISIONFIVE2
if "VisionFive" in model_value and "V2" in model_value:
model = boards.VISIONFIVE2
return model
def _pi_id(self) -> Optional[str]: