fix a bug with not capitalizing BITMAIN for a model check

This commit is contained in:
UpstreamData
2022-08-02 08:18:46 -06:00
parent 9cbaf7076a
commit f63e063954

View File

@@ -541,8 +541,8 @@ class MinerFactory(metaclass=Singleton):
ver = model.split("V")[1]
model = model.split("V")[0]
# don't need "Bitmain", just "ANTMINER XX" as model
if "Bitmain " in model:
model = model.replace("Bitmain ", "")
if "BITMAIN " in model:
model = model.replace("BITMAIN ", "")
return model, api, ver
@staticmethod