fixed a bug for scanning S9s with no boards for testing

This commit is contained in:
UpstreamData
2022-05-13 14:03:27 -06:00
parent 6d5a288120
commit 47a702c94c

View File

@@ -300,6 +300,9 @@ class MinerFactory(metaclass=Singleton):
else:
# some avalonminers have model in driver
model = devdetails["DEVDETAILS"][0]["Driver"]
else:
if "s9" in devdetails["STATUS"][0]["Description"]:
model = "Antminer S9"
if version:
# check if there are any BMMiner strings in any of the dict keys